-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
v4.0
-
Repl 2018-06-18, Repl 2018-07-02
-
0
ReplSetTest.waitForState() can be used to wait for a node to step down. However, nodes close external connections at stepdown, so queries run on the node immediately after waitForState() returns can experience a network error. We should ensure that the node has finished closing its external connections before returning. This can be done by running a query on the node, since this will take a global intent lock, which will block until the node has finished closing external connections.