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

Fix ./jstests/replsets/initial_sync_drop_collection.js to prevent using stale heartbeat info in the test.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.7, 4.0.2, 4.1.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Repl 2018-07-30
    • Linked BF Score:
      2

      Description

      _waitForIndicator function in ./src/mongo/shell/replsettest.js always executes the "replSetGetStatus" cmd on primary and gets the member node's state. If the primary is not holding up-to-date info about the replica set members, then replTest.waitForState in finishTest can work incorrectly and lead to failures like in BF-9682.

      Fix is to make the setupTest function to wait till secondary node's state reaches "STARTUP2" after its restart.

        Attachments

          Activity

            People

            Assignee:
            suganthi.mani Suganthi Mani
            Reporter:
            suganthi.mani Suganthi Mani
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: