[v26.1.x] transform: multi-produce failure wedge fix#30855
Merged
WillemKauf merged 2 commits intoJun 20, 2026
Merged
Conversation
Signed-off-by: Anish Shenoy <anish@onechronos.com> (cherry picked from commit 638caa4)
`run_all_producers()` fanned out one producer loop per output via `ss::parallel_for_each()`, which captures the first exception but waits for every loop to finish before resolving. A producer loop only exits once its abort source fires, so when a single producer threw (e.g. a transient "not a leader for partition" during a leadership transfer) the surviving loops spun forever. parallel_for_each stayed pending, the exception was never observed, and state::errored never fired -- so the processor's reported state stayed stuck at running with no progress on the affected output until an external pause/resume. Single-output transforms were unaffected because `parallel_for_each()` over one element resolves exceptionally immediately. Drive the producer loops off a composite abort source that fires when either the processor stops (_as) or a producer fails (a local source). The first producer to fail records its exception and aborts the local source, which unwinds the sibling producer loops promptly; the captured exception is then rethrown so it is reported exactly once as state::errored, and the manager restarts the processor. Also updates the repro test from the previous commit to assert the failure is reported for any output count, and adds a regression test that fails a producer, restarts, and asserts a clean restart with no spurious second error. (cherry picked from commit 38526c5)
WillemKauf
approved these changes
Jun 19, 2026
Collaborator
Author
CI test resultstest results on build#86049
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of PR #30836