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

replSetReconfig should be allowed to fail with InterruptedDueToReplStateChange when racing with an election

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4, 4.2.15
    • None
    • Replication
    • None
    • Fully Compatible
    • v4.2
    • Repl 2020-02-10
    • 15

    Description

      reconfig_during_election.js expects that a replSetReconfig command can always succeed when run during an election.

      However, if the candidate was issued a replSetStepUp command, it is possible that the reconfig command can be killed by the RstlKillOpThread. In this case, we would fail with an InterruptedDueToReplStateChange error.

      It is fine to fail with this error since this test is making sure that we do not invariant when a reconfig is running during an election. See SERVER-37255 for an in depth description of the bug.

      Attachments

        Activity

          People

            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: