FanoutPublisherSink leaks actors on upstream failure #25634
Labels
3 - in progress
Someone is working on this ticket
bug
help wanted
Issues that the core team will likely not have time to work on
t:stream
Milestone
The implementation for
FanoutPublisherSink
doesn't terminate the actorFanoutProcessorImpl
on upstream failure, leaving any elements buffered inFanoutOutputs
strongly reachable from theStreamSupervisor
instance.I've tested this against the latest v2.5.16.
At the bottom of
FanoutputProcessorImpl.fail
, a comment indicates that the actor will be stopped after flushing... but if you take a look atFanoutOutput.error
you can see that the failure flow never callsafterShutdown
, which is how the actor is terminated by normal completion.Example to reproduce:
The text was updated successfully, but these errors were encountered: