Skip to content

adapters: process non-barrier inputs once checkpoint has started#6235

Open
abhizer wants to merge 1 commit into
mainfrom
issue6100
Open

adapters: process non-barrier inputs once checkpoint has started#6235
abhizer wants to merge 1 commit into
mainfrom
issue6100

Conversation

@abhizer
Copy link
Copy Markdown
Contributor

@abhizer abhizer commented May 14, 2026

Don't pause inputs if a checkpoint has already started: once it has started, the checkpoint may be processing in a background thread but this shouldn't stop the pipeline from processing inputs.

Previously, only CheckpointBarrier inputs would be processed in this situation, preventing most inputs from being processed and stalling the pipeline. If maximum output buffer time was greater than the checkpoint interval, the pipeline would wait until all the outputs are flushed to process non-barrier inputs.

Fixes: #6100

Describe Manual Test Plan

We add a new test: tests/platform/test_output_buffer_checkpoint.py for the buggy behavior. Just running this should validate that the bug no longer exists.

Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • Documentation updated
  • Changelog updated

Don't pause inputs if a checkpoint has already started: once it has
started, the checkpoint may be processing in a background thread but
this shouldn't stop the pipeline from processing inputs.

Previously, only CheckpointBarrier inputs would be processed in this
situation, preventing most inputs from being processed and stalling the
pipeline. If maximum output buffer time was greater than the checkpoint
interval, the pipeline would wait until all the outputs are flushed to
process non-barrier inputs.

Fixes: #6100

Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>
@abhizer abhizer requested a review from blp May 14, 2026 11:36
@abhizer abhizer self-assigned this May 14, 2026
@abhizer abhizer added bug Something isn't working connectors Issues related to the adapters/connectors crate labels May 14, 2026
Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM

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

Labels

bug Something isn't working connectors Issues related to the adapters/connectors crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output buffering unexpectedly stalls pipeline activity

2 participants