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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.11, 4.0.6, 4.1.6
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2018-12-03, Repl 2018-12-17
    • 14

      _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 can work incorrectly and lead to failures like in BF-11225.

      Fix is to use rslib's waitForState which verifies the node's state by making a call directly to that node in question.

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

              Created:
              Updated:
              Resolved: