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

Make reconstruct_prepared_transactions_initial_sync.js robust to election failures.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-rc11, 4.2.9, 4.7.0
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Repl 2020-06-15, Repl 2020-06-29
    • Linked BF Score:
      18

      Description

      Using replTest.stepUp in the test always expects the replica set to have a primary before running replSetStepUp cmd for any retries. It's not possible to hold that guarantee if a test run with high electionTimeOutMillis (24 hrs) because the nodes can't start an election by it's own during the test unless it was started by the jstest explicitly using "replSetStepDown" cmd.

      Though SERVER-47612 (on master) made storing last vote document during replSetRequestVotes cmd as resilient against concurrent step down, the solution for this ticket should be more generic to handle any replSetStepUp failures. So, we should make the test to use stepUpNoAwaitReplication instead of stepUp method.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: