Skip to content

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

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

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

Conversation

@fsamin

@fsamin fsamin commented Feb 27, 2026

Copy link
Copy Markdown
Member

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.

@sonarqubecloud

Copy link
Copy Markdown

@yesnault yesnault force-pushed the fix/cdn-sendsteplog-stall branch from aa5d73c to abf7fa7 Compare May 13, 2026 13:25
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>
@yesnault yesnault force-pushed the fix/cdn-sendsteplog-stall branch from abf7fa7 to 6c21c2a Compare May 28, 2026 06:19
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.

2 participants