MultiDcSplitBain: only subscribe to unreachable after split
Test would fail picking up the reachable from the previous unsplit as it is a new probe. Also change barrierCounter to split/unsplit so easier to see where the failure is on a barrier fail
This commit is contained in:
parent
78b5045165
commit
5658d6e77a
2 changed files with 13 additions and 18 deletions
|
|
@ -596,9 +596,6 @@ private[cluster] final class ClusterDomainEventPublisher extends Actor with Acto
|
|||
}
|
||||
|
||||
def publishDiff(oldState: MembershipState, newState: MembershipState, pub: AnyRef ⇒ Unit): Unit = {
|
||||
def inSameDc(reachabilityEvent: ReachabilityEvent): Boolean =
|
||||
reachabilityEvent.member.dataCenter == selfDc
|
||||
|
||||
diffMemberEvents(oldState, newState) foreach pub
|
||||
diffUnreachable(oldState, newState) foreach pub
|
||||
diffReachable(oldState, newState) foreach pub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue