[SERVER-45919] replSetReconfig should be allowed to fail with InterruptedDueToReplStateChange when racing with an election Created: 31/Jan/20  Updated: 29/Oct/23  Resolved: 03/Feb/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.4, 4.2.15

Type: Improvement Priority: Major - P3
Reporter: Pavithra Vetriselvan Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Repl 2020-02-10
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 27/May/21 ]

Author:

{'name': 'Pavithra Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-45919 replSetReconfig should be allowed to fail with InterruptedDueToReplStateChange in reconfig_during_election.js

(cherry picked from commit f44afc0ce5c5a0a8e7dacd2b0d3a042fc989a21d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5abaf93b6088795ebf7c6822cd462e48a958805b

Comment by Githook User [ 03/Feb/20 ]

Author:

{'name': 'Pavithra Vetriselvan', 'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com'}

Message: SERVER-45919 replSetReconfig should be allowed to fail with InterruptedDueToReplStateChange in reconfig_during_election.js
Branch: master
https://github.com/mongodb/mongo/commit/f44afc0ce5c5a0a8e7dacd2b0d3a042fc989a21d

Comment by Pavithra Vetriselvan [ 31/Jan/20 ]

Code review url: https://mongodbcr.appspot.com/541140016/

Generated at Thu Feb 08 05:10:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.