Skip to content

fix(fetch): Finish the claimed batch before shutting down - #865

Merged
lvthanh03 merged 1 commit into
mainfrom
tony/stuck-activations-shutdown
Nov 16, 2026
Merged

lvthanh03 merged 1 commit into
mainfrom
tony/stuck-activations-shutdown

Conversation

@lvthanh03

@lvthanh03 lvthanh03 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The fetch loop raced the shutdown signal against fetch_once in the select!. When shutdown won, fetch_once was dropped wherever it was waiting, and every row it had claimed but not yet submitted stayed Claimed.

Check for shutdown between batches instead. The push pool drains the rest of the batch before it exits.

Refs STREAM-2113

@lvthanh03
lvthanh03 requested a review from a team as a code owner November 16, 2026 19:33
@lvthanh03
lvthanh03 merged commit eb929cf into main Nov 16, 2026
26 of 27 checks passed
@lvthanh03
lvthanh03 deleted the tony/stuck-activations-shutdown branch November 16, 2026 20:09
@linear-code

linear-code Bot commented Nov 16, 2026

Copy link
Copy Markdown

STREAM-2113

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.

3 participants