Skip to content

fix(cdn): prevent log streaming stall in sendStepLog#7644

Open
fsamin wants to merge 1 commit intomasterfrom
fix/cdn-sendsteplog-stall
Open

fix(cdn): prevent log streaming stall in sendStepLog#7644
fsamin wants to merge 1 commit intomasterfrom
fix/cdn-sendsteplog-stall

Conversation

@fsamin
Copy link
Copy Markdown
Member

@fsamin fsamin commented Feb 27, 2026

Replace break with continue when scoreNextLineToSend does not match the current line number. When lines arrive out of order in the Redis buffer, the old break would exit the loop and never re-trigger an update, causing the stream to stall permanently.

Added gap recovery: when lines exist in the buffer but none match the expected scoreNextLineToSend, jump to the first available line and re-trigger an update instead of staying stuck forever.

Replace break with continue when scoreNextLineToSend does not match
the current line number. When lines arrive out of order in the Redis
buffer, the old break would exit the loop and never re-trigger an
update, causing the stream to stall permanently.

Added gap recovery: when lines exist in the buffer but none match
the expected scoreNextLineToSend, jump to the first available line
and re-trigger an update instead of staying stuck forever.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant