Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.1, 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-10-07
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should change the call from replSet.waitforState to replSet.awaitSecondaryNodes() in initial_sync_write_conflict.js. replSet.waitForState queries the primary to check the states of the nodes in the replica set which could be stale. In this test, it is possible that the secondary has just restarted and is going through startup but waitForState returns that the secondary has reached SECONDARY state.

              Assignee:
              Jason Chan
              Reporter:
              Jason Chan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: