ReplSetTest.waitForState() should ensure node has finished closing connections

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0.1, 4.1.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Repl 2018-06-18, Repl 2018-07-02
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Tess Avitabile (Inactive)
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: