Skip to content
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

Remove return of force exit task in coordinated shutdown #3816

Merged

Conversation

mwpro
Copy link
Contributor

@mwpro mwpro commented Jun 4, 2019

Fixes #3815

I've removed the return statement in front of force exit task, which was making code responsible for actual terminating of actor system unreachable when both terminate-actor-system and exit-clr are enabled.

Sorry for not writing any tests but I didn't figure out how to write unit test for code containing Environment.Exit(0) (which causes whole test suite to exit).

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. LGTM

@Aaronontheweb
Copy link
Member

Aaronontheweb commented Jun 4, 2019

@mwpro I wouldn't worry about a reproduction spec for this - as you point out, the Environment.Exit call makes that virtually impossible.

@Aaronontheweb Aaronontheweb merged commit f4a768c into akkadotnet:dev Jun 19, 2019
madmonkey pushed a commit to madmonkey/akka.net that referenced this pull request Jul 12, 2019
Aaronontheweb pushed a commit to Aaronontheweb/akka.net that referenced this pull request Jul 21, 2019
Aaronontheweb pushed a commit to Aaronontheweb/akka.net that referenced this pull request Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coordinated shutdown timesout when exit-clr = on
3 participants