Skip to content

Conversation

@gridnevvvit
Copy link
Member

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copilot AI review requested due to automatic review settings November 21, 2025 23:59
@gridnevvvit gridnevvvit requested a review from a team as a code owner November 21, 2025 23:59
Copilot finished reviewing on behalf of gridnevvvit November 22, 2025 00:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the result row flushing mechanism in the stream lookup worker to make results available earlier, potentially avoiding overload conditions. The key change is the introduction of a FlushedResultRows queue that eagerly stores completed result rows instead of keeping them in ResultRowsBySeqNo until ReplyResult() is called.

  • Introduces FlushedResultRows deque to store completed result rows
  • Adds FlushRowsIfNeeded() method to eagerly move rows to FlushedResultRows
  • Refactors ReplyResult() to consume from FlushedResultRows instead of iterating through ResultRowsBySeqNo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

while (!resultStats.SizeLimitExceeded) {
auto resultIt = getNextResult();
if (resultIt == ResultRowsBySeqNo.end()) {
while(true) {
Copy link

Copilot AI Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space between while and (. The codebase consistently uses while ( with a space (see lines 32, 267, 335, 402, 720, 736, 943). This should be while (true) for consistency.

Suggested change
while(true) {
while (true) {

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Nov 22, 2025

🟢 2025-11-22 05:52:59 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Nov 22, 2025

2025-11-22 00:14:54 UTC Pre-commit check linux-x86_64-relwithdebinfo for f7f8dab has started.
2025-11-22 00:15:03 UTC Artifacts will be uploaded here
2025-11-22 00:16:44 UTC ya make is running...
🟡 2025-11-22 01:51:48 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39364 36472 0 22 2840 30

2025-11-22 01:51:59 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-11-22 02:02:20 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
104 (only retried tests) 72 0 18 0 14

2025-11-22 02:02:27 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-11-22 02:10:25 UTC Some tests failed, follow the links below.

Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
64 (only retried tests) 32 0 18 0 14

🟢 2025-11-22 02:10:31 UTC Build successful.
🟢 2025-11-22 02:10:57 UTC ydbd size 2.3 GiB changed* by +62.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6a893e7 merge: f7f8dab diff diff %
ydbd size 2 454 697 008 Bytes 2 454 760 448 Bytes +62.0 KiB +0.003%
ydbd stripped size 523 129 656 Bytes 523 142 584 Bytes +12.6 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 22, 2025

2025-11-22 00:20:24 UTC Pre-commit check linux-x86_64-release-asan for f7f8dab has started.
2025-11-22 00:20:40 UTC Artifacts will be uploaded here
2025-11-22 00:22:46 UTC ya make is running...
🟡 2025-11-22 01:39:06 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12406 12271 0 81 35 19

🟢 2025-11-22 01:39:14 UTC Build successful.
🟢 2025-11-22 01:39:47 UTC ydbd size 3.8 GiB changed* by +97.1 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6a893e7 merge: f7f8dab diff diff %
ydbd size 4 109 043 864 Bytes 4 109 143 272 Bytes +97.1 KiB +0.002%
ydbd stripped size 1 527 256 560 Bytes 1 527 292 080 Bytes +34.7 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@gridnevvvit gridnevvvit force-pushed the quicker-release-result-rows branch from 190ac36 to e3cc0bf Compare November 22, 2025 05:49
@gridnevvvit gridnevvvit changed the title quicker result rows to avoid potential overload quicker result rows release to avoid potential overload Nov 22, 2025
@github-actions
Copy link

github-actions bot commented Nov 22, 2025

2025-11-22 05:54:11 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1e525c2 has started.
2025-11-22 05:54:28 UTC Artifacts will be uploaded here
2025-11-22 05:56:33 UTC ya make is running...
🟡 2025-11-22 07:25:45 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39364 36493 0 2 2836 33

2025-11-22 07:25:58 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-22 07:35:27 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
60 (only retried tests) 44 0 0 0 16

🟢 2025-11-22 07:35:33 UTC Build successful.
🟢 2025-11-22 07:35:54 UTC ydbd size 2.3 GiB changed* by +62.8 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6a893e7 merge: 1e525c2 diff diff %
ydbd size 2 454 697 008 Bytes 2 454 761 352 Bytes +62.8 KiB +0.003%
ydbd stripped size 523 129 656 Bytes 523 142 840 Bytes +12.9 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 22, 2025

2025-11-22 05:54:37 UTC Pre-commit check linux-x86_64-release-asan for 1e525c2 has started.
2025-11-22 05:54:54 UTC Artifacts will be uploaded here
2025-11-22 05:56:58 UTC ya make is running...
🟡 2025-11-22 07:07:45 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12406 12286 0 89 17 14

🟢 2025-11-22 07:07:53 UTC Build successful.
🟢 2025-11-22 07:08:26 UTC ydbd size 3.8 GiB changed* by +98.3 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6a893e7 merge: 1e525c2 diff diff %
ydbd size 4 109 043 864 Bytes 4 109 144 568 Bytes +98.3 KiB +0.002%
ydbd stripped size 1 527 256 560 Bytes 1 527 292 656 Bytes +35.2 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@gridnevvvit gridnevvvit force-pushed the quicker-release-result-rows branch from e3cc0bf to 0a0ff04 Compare December 2, 2025 10:09
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

2025-12-02 10:10:36 UTC Pre-commit check linux-x86_64-release-asan for c3794b5 has started.
2025-12-02 10:11:18 UTC Artifacts will be uploaded here
2025-12-02 10:13:55 UTC ya make is running...
🟡 2025-12-02 11:16:41 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11938 11862 0 47 18 11

🟢 2025-12-02 11:16:50 UTC Build successful.
🟡 2025-12-02 11:17:14 UTC ydbd size 3.8 GiB changed* by +109.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 33f5bfa merge: c3794b5 diff diff %
ydbd size 4 122 496 888 Bytes 4 122 608 800 Bytes +109.3 KiB +0.003%
ydbd stripped size 1 530 787 384 Bytes 1 530 830 136 Bytes +41.8 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

2025-12-02 10:13:14 UTC Pre-commit check linux-x86_64-relwithdebinfo for c3794b5 has started.
2025-12-02 10:13:32 UTC Artifacts will be uploaded here
2025-12-02 10:15:37 UTC ya make is running...
🟡 2025-12-02 11:44:13 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39580 36716 0 3 2843 18

2025-12-02 11:44:25 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-12-02 11:53:46 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38 (only retried tests) 27 0 0 0 11

🟢 2025-12-02 11:53:53 UTC Build successful.
🟢 2025-12-02 11:54:11 UTC ydbd size 2.3 GiB changed* by +74.8 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 33f5bfa merge: c3794b5 diff diff %
ydbd size 2 463 385 552 Bytes 2 463 462 168 Bytes +74.8 KiB +0.003%
ydbd stripped size 524 331 776 Bytes 524 347 904 Bytes +15.8 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@gridnevvvit gridnevvvit merged commit b52dcd2 into ydb-platform:main Dec 2, 2025
9 checks passed
@ydbot
Copy link
Collaborator

ydbot commented Dec 2, 2025

Backport

To backport this PR, click the button next to the target branch and then click "Run workflow" in the Run Actions UI.

Branch Run
stable-25-2, stable-25-2-1, stable-25-3, stable-25-3-1 ▶  Backport
stable-25-3, stable-25-3-1 ▶  Backport
stable-25-3 ▶  Backport

▶  Backport manual

@ydbot
Copy link
Collaborator

ydbot commented Dec 2, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants