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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.0-rc11, 4.2.9, 4.7.0
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2
    • Repl 2020-06-15, Repl 2020-06-29
    • 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

              suganthi.mani@mongodb.com Suganthi Mani
              suganthi.mani@mongodb.com Suganthi Mani
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: