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

Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Jason Chan
            Reporter:
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: