-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Don't automatically down quarantined nodes #3605
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
Conversation
var secondUnique = Cluster.State.Members.SingleOrDefault(m => m.Address == GetAddress(_config.Second) && m.Status == MemberStatus.Up); | ||
if (secondUnique == null) | ||
{ | ||
// TODO: fail("Unexpected removal of quarantined node") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be some sort of assertion fail. Couldn't figure out the api for that in Akka.NET, yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use Fluent Assertions. Lookin at the code from original test:
var secondUniqueAddress = Cluster.State.Members.SingleOrDefault(m => m.Address == GetAddress(_config.Second));
secondUniqueAddress.Should().Not.BeNull(because: "2nd node should stay visible");
secondUniqueAddress.Status.Should().Be(MemberStatus.Up, because: "2nd node should be Up");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one case (missing assertion, @ismaelhamed pointed himself). Beside that, it's good to go 👍
var secondUnique = Cluster.State.Members.SingleOrDefault(m => m.Address == GetAddress(_config.Second) && m.Status == MemberStatus.Up); | ||
if (secondUnique == null) | ||
{ | ||
// TODO: fail("Unexpected removal of quarantined node") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use Fluent Assertions. Lookin at the code from original test:
var secondUniqueAddress = Cluster.State.Members.SingleOrDefault(m => m.Address == GetAddress(_config.Second));
secondUniqueAddress.Should().Not.BeNull(because: "2nd node should stay visible");
secondUniqueAddress.Status.Should().Be(MemberStatus.Up, because: "2nd node should be Up");
e4828f1
to
23eff61
Compare
Thanks @ismaelhamed ! |
Currently, a quarantined node will be automatically downed and removed from the cluster without the downing provider being aware of the situation.
Port #25678