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

fix race conditions with node exits in MNTR #4204

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

Aaronontheweb
Copy link
Member

This was a configuration issue that may be responsible for a number of "racy" tests we have in the multi node test runner (MNTR) suite.

Specifically, this fix disables coordinated shutdown so the ActorSystem does not terminate by default when a node leaves the cluster - that way the PlayerFSM on the node that has left can still successfulyl call EnterBarrier(string name) and not blow up the entire test suite.

{
_client.Tell(new ToServer<FailBarrier>(new FailBarrier(name)));
throw new TimeoutException("Client timed out while waiting for barrier " + name);
throw new TimeoutException("Client timed out while waiting for barrier " + name, ex);
Copy link
Member Author

Choose a reason for hiding this comment

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

Used to generate clearer error messages when things like barrier timeouts occur

@@ -363,6 +363,9 @@ public static Config BaseConfig
@"akka {
loglevel = ""WARNING""
stdout-loglevel = ""WARNING""
coordinated-shutdown.terminate-actor-system = off
Copy link
Member Author

Choose a reason for hiding this comment

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

Needed to disable CoordinatedShutdown from running here, so nodes can still pass barriers in the even that they leave the cluster

@Aaronontheweb Aaronontheweb merged commit f3236f4 into akkadotnet:dev Feb 11, 2020
@Aaronontheweb Aaronontheweb deleted the fix-MNTR-Config branch February 11, 2020 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant