Skip to content

[release-2.75] Cherry-pick #39096 to the branch - #39114

Closed
shunping wants to merge 3 commits into
apache:masterfrom
shunping:cp-39096
Closed

[release-2.75] Cherry-pick #39096 to the branch#39114
shunping wants to merge 3 commits into
apache:masterfrom
shunping:cp-39096

Conversation

@shunping

Copy link
Copy Markdown
Collaborator

No description provided.

Amar3tto and others added 3 commits June 24, 2026 20:25
Previously, in ExecutorServiceParallelExecutor, if an exception
occurred during registry cleanup (such as a timeout inside
DoFn teardown), the pipeline state was transitioned to terminal
before the exception was queued in `visibleUpdates`.

This introduced a race condition where `waitUntilFinish()` could
detect the terminal state and exit successfully before the
exception was offered to the updates queue, swallowing the exception.

This caused tests like `CallTest.givenTeardownTimeout_throwsError`
to fail since they expected the pipeline to throw an exception.
This change swaps the order so that the exception is posted to
`visibleUpdates` before updating the pipeline state to terminal,
ensuring the exception is always propagated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant