You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transform: abort siblings when producer loop fails
`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.
0 commit comments