-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
MultiDcSplitBrainSpec: Turn on gossip loggig; Increase gossip frequency #24024
Conversation
The last time this failed there was no gossip to or from a node that didn't see fifth coming back. Also note that this test doesn't quite test what it says as the split brain is repaired before starting the second actor system but without extensions to the multi jvm test kit this can't be improved. Refs akka#23306
@@ -69,8 +70,8 @@ abstract class MultiDcSplitBrainSpec | |||
val dc2 = List(third, fourth, fifth) | |||
var barrierCounter = 0 | |||
|
|||
def splitDataCenters(notMembers: Set[RoleName]): Unit = { | |||
val memberNodes = (dc1 ++ dc2).filterNot(notMembers) | |||
def splitDataCenters(doNotVerify: Set[RoleName]): Unit = { |
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.
Before i looked at this code i thought the nodes passed in weren't split
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.
Good rename
I spent quite some time re-writing this test to make it have a network partition during the start up of the second actor system on fifth but i don't think it is possible with the current multi jvm test kit |
Test PASSed. |
@@ -69,8 +70,8 @@ abstract class MultiDcSplitBrainSpec | |||
val dc2 = List(third, fourth, fifth) | |||
var barrierCounter = 0 | |||
|
|||
def splitDataCenters(notMembers: Set[RoleName]): Unit = { | |||
val memberNodes = (dc1 ++ dc2).filterNot(notMembers) | |||
def splitDataCenters(doNotVerify: Set[RoleName]): Unit = { |
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.
Good rename
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.
LGTM, looks good
…cy (akka#24024) The last time this failed there was no gossip to or from a node that didn't see fifth coming back. Also note that this test doesn't quite test what it says as the split brain is repaired before starting the second actor system but without extensions to the multi jvm test kit this can't be improved. Refs akka#23306
…cy (akka#24024) The last time this failed there was no gossip to or from a node that didn't see fifth coming back. Also note that this test doesn't quite test what it says as the split brain is repaired before starting the second actor system but without extensions to the multi jvm test kit this can't be improved. Refs akka#23306
The last time this failed there was no gossip to or from a node that
didn't see fifth coming back.
Turning on gossip logging to see what is going on as well as increasing the gossip frequency.
Also note that this test doesn't quite test what it says as the split
brain is repaired before starting the second actor system but without
extensions to the multi jvm test kit this can't be improved.
Refs #23306