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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: