Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35488

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.1, 4.1.1
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Repl 2018-06-18, Repl 2018-07-02
    • 0

    Description

      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.

      Attachments

        Activity

          People

            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: