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

Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.1, 4.3.1
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Repl 2019-10-07

    Description

      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.

      Attachments

        Activity

          People

            jason.chan@mongodb.com Jason Chan
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: