Discuss logging of AbruptTerminationException on ActorSystem shutdown #27465
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
discuss
Tickets that need some discussion before proceeding. Not decided if it's a good idea.
t:core
t:stream
During ActorSystem shutdown
AbruptTerminationException
are injected into still running streams and may cause noisy error logging.Why does it matter?
When you shut down a system you often don't care as much for errors as during steady state. These errors then spam test and production logs. Unfortunately, the usual loggers are not used because these logs happen after the logging infrastructure has already mostly shut down. (See also #25021)
What does happen?
postStop
AbruptTerminationException
whereever possible into the stream and continue running the stream for a bit so that errors are actually somewhat handledWhich stages noisily log errors?
Basically all system-wide singletons that keep running streams and where it is non-obvious how to report errors otherwise.
In which cases is AbruptTerminationException actually helpful
When running long-running streams in non-singleton materializers and those are shutdown explicitly or implicitly, you might wonder why those streams are gone.
Potential solutions
The text was updated successfully, but these errors were encountered: