Fix shutdown/remove race as described by @rkuhn, see #2137

* Skip nodes removal
* Ignore removed client when enter barrier
* Change order of testConductor.shutdown and testConductor.removeNode
This commit is contained in:
Patrik Nordwall 2012-06-04 11:38:39 +02:00
parent e7cf92e72a
commit 52f122107c
6 changed files with 8 additions and 9 deletions

View file

@ -51,8 +51,8 @@ class LeaderDowningNodeThatIsUnreachableSpec
testConductor.enter("all-up")
// kill 'fourth' node
testConductor.shutdown(fourth, 0)
testConductor.removeNode(fourth)
testConductor.shutdown(fourth, 0)
testConductor.enter("down-fourth-node")
// --- HERE THE LEADER SHOULD DETECT FAILURE AND AUTO-DOWN THE UNREACHABLE NODE ---
@ -91,8 +91,8 @@ class LeaderDowningNodeThatIsUnreachableSpec
testConductor.enter("all-up")
// kill 'second' node
testConductor.shutdown(second, 0)
testConductor.removeNode(second)
testConductor.shutdown(second, 0)
testConductor.enter("down-second-node")
// --- HERE THE LEADER SHOULD DETECT FAILURE AND AUTO-DOWN THE UNREACHABLE NODE ---