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:
parent
e7cf92e72a
commit
52f122107c
6 changed files with 8 additions and 9 deletions
|
|
@ -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 ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue