-
Notifications
You must be signed in to change notification settings - Fork 737
quicker result rows release to avoid potential overload #29362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quicker result rows release to avoid potential overload #29362
Conversation
There was a problem hiding this 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
FlushedResultRowsdeque to store completed result rows - Adds
FlushRowsIfNeeded()method to eagerly move rows toFlushedResultRows - Refactors
ReplyResult()to consume fromFlushedResultRowsinstead of iterating throughResultRowsBySeqNo
💡 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) { |
Copilot
AI
Nov 22, 2025
There was a problem hiding this comment.
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.
| while(true) { | |
| while (true) { |
|
🟢 |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
⚪ Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
190ac36 to
e3cc0bf
Compare
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
e3cc0bf to
0a0ff04
Compare
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
Backport results: |
Changelog entry
...
Changelog category
Description for reviewers
...