Reverted two lines of code mistakenly pushed to early.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
parent
14d7632771
commit
06ec519c7c
1 changed files with 8 additions and 8 deletions
|
|
@ -774,15 +774,15 @@ class Node(system: ActorSystemImpl) extends Extension {
|
|||
*/
|
||||
private def convergence(gossip: Gossip): Option[Gossip] = {
|
||||
val overview = gossip.overview
|
||||
if (overview.unreachable.isEmpty) { // if there are any unreachable nodes then we can't have a convergence -
|
||||
// waiting for user to act (issuing DOWN) or leader to act (issuing DOWN through auto-down)
|
||||
val seen = gossip.overview.seen
|
||||
val views = Set.empty[VectorClock] ++ seen.values
|
||||
if (views.size == 1) {
|
||||
log.debug("Node [{}] - Cluster convergence reached", remoteAddress)
|
||||
Some(gossip)
|
||||
} else None
|
||||
// if (overview.unreachable.isEmpty) { // if there are any unreachable nodes then we can't have a convergence -
|
||||
// waiting for user to act (issuing DOWN) or leader to act (issuing DOWN through auto-down)
|
||||
val seen = gossip.overview.seen
|
||||
val views = Set.empty[VectorClock] ++ seen.values
|
||||
if (views.size == 1) {
|
||||
log.debug("Node [{}] - Cluster convergence reached", remoteAddress)
|
||||
Some(gossip)
|
||||
} else None
|
||||
// } else None
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue