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

Change waitForState to awaitSecondaryNodes in initial_sync_write_conflict.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.1, 4.3.1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      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

            Assignee:
            jason.chan Jason Chan
            Reporter:
            jason.chan Jason Chan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: