Add an assertion to ZenDiscovery checking that local node is never elected if pings indicate an active master
This commit is contained in:
parent
680fb36637
commit
ed5b2e0e35
|
@ -965,6 +965,8 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
|||
return null;
|
||||
}
|
||||
} else {
|
||||
|
||||
assert !pingMasters.contains(localNode) : "local node should never be elected as master when other nodes indicate an active master";
|
||||
// lets tie break between discovered nodes
|
||||
return electMaster.electMaster(pingMasters);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue