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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4, 4.2.15
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v4.2
    • Repl 2020-02-10
    • 15

      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.

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

              Created:
              Updated:
              Resolved: