-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AkkaSystem unclean termination #6948
Comments
I can't really reproduce the bug, maybe there are other things that causes the actor system to fail? |
So I missed this - but this is largely an unhandleable situation and |
See https://learn.microsoft.com/en-us/dotnet/api/system.outofmemoryexception?view=net-7.0 for a fuller explanation on what you can do to log this type of error ( |
Its not that OOM exception should be handled explicitly, If not My end result was that my LiveHealthCheck on |
In my opinion |
Ok, that is fixable. We can do that. |
Any updates on this @Zetanova ? |
Version Information
akka.net 1.5.13
Describe the bug
akka shutdown/termination on fatal situations does not trigger final stop signals and callbacks.
This includes
AkkaSystem.WhenTerminated
andSystem.RegisterOnTermination()
This leads to
AkkaSystem.WhenTerminated
never completes (LivenessHealthCheck: Healthy)and no ApplicationStop can be triggered over
System.RegisterOnTermination(StopApplication)
.(Downed node with ReadinessHealthCheck: Unhealthy)
To Reproduce
Terminate and/or CoordinatedShutdown a system in OOM situation.
Expected behavior
The
AkkaSystem.RegisterOnTermination
should trigger even after an unsuccessfulCoordinatedShutdown
orAkkaSystem.Terminate()
Actual behavior
The
CoordinatedShutdown
and/orAkkaSystem.Terminate()
are throwing and noAkkaSystem.RegisterOnTermination
are executedand
AkkaSystem.WhenTerminated
does not complete.Environment
ubuntu-jammy
docker desktop and k8n
The text was updated successfully, but these errors were encountered: