Skip to content

Fix worker hang after poll_ready error in Collecting state#25

Merged
chmodas merged 1 commit into
trunkfrom
transition-to-finished-after-poll-ready-error
Apr 7, 2026
Merged

Fix worker hang after poll_ready error in Collecting state#25
chmodas merged 1 commit into
trunkfrom
transition-to-finished-after-poll-ready-error

Conversation

@chmodas

@chmodas chmodas commented Apr 7, 2026

Copy link
Copy Markdown
Owner

When service.poll_ready() returned Err during item collection, the worker continued looping in the Collecting state, calling poll_ready again on the broken service for each remaining channel message. If the service returned Pending, the worker would hang forever.

Transition to Finished immediately after propagating the error, matching the pattern already used by the Flushing state error handler.

When service.poll_ready() returned Err during item collection, the
worker continued looping in the Collecting state, calling poll_ready
again on the broken service for each remaining channel message. If the
service returned Pending, the worker would hang forever.

Transition to Finished immediately after propagating the error, matching
the pattern already used by the Flushing state error handler.
@chmodas chmodas merged commit 24a3fb2 into trunk Apr 7, 2026
2 checks passed
@chmodas chmodas deleted the transition-to-finished-after-poll-ready-error branch April 7, 2026 07:19
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.83%. Comparing base (720590c) to head (6c80a0d).
⚠️ Report is 1 commits behind head on trunk.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk      #25   +/-   ##
=======================================
  Coverage   98.83%   98.83%           
=======================================
  Files           6        6           
  Lines         342      344    +2     
=======================================
+ Hits          338      340    +2     
  Misses          4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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