Skip to content

CoordinatedShutdown: return non-zero (error) exit code when ActorSystem is removed due to DOWNing #7517

@Aaronontheweb

Description

@Aaronontheweb

Is your feature request related to a problem? Please describe.

This issue was raised by a support customer - TL;DR; if Akka.NET could force the process to exit when the Split Brain Resolver (SBR) kicks in using a non-zero exit code in situations where the node is downed, that would allow Windows Services to automatically detect a failure and restart the service more easily.

Describe the solution you'd like

We'd need some way of passing into a parameter like int exitCode when we invoke the CoordinatedShutdown routine if one doesn't already exist. That could be propagated all the way through until the clr-exit stage if it's enabled - and the return code could be set there.

Describe alternatives you've considered

N/A

Additional context

This might be useful in non-Windows contexts too, like K8s supervision

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions