Allow barrier timeouts to be shortened and other review fixes

This commit is contained in:
Björn Antonsson 2012-06-15 14:39:47 +02:00
parent b52da8d588
commit fd42c3d49a
32 changed files with 395 additions and 267 deletions

View file

@ -47,23 +47,23 @@ abstract class ClientDowningNodeThatIsUnreachableSpec
// mark 'third' node as DOWN
cluster.down(thirdAddress)
enter("down-third-node")
enterBarrier("down-third-node")
awaitUpConvergence(numberOfMembers = 3, canNotBePartOfMemberRing = Seq(thirdAddress))
cluster.latestGossip.members.exists(_.address == thirdAddress) must be(false)
}
runOn(third) {
enter("down-third-node")
enterBarrier("down-third-node")
}
runOn(second, fourth) {
enter("down-third-node")
enterBarrier("down-third-node")
awaitUpConvergence(numberOfMembers = 3, canNotBePartOfMemberRing = Seq(thirdAddress))
}
enter("await-completion")
enterBarrier("await-completion")
}
}
}