[SERVER-66626] Failed election during a replSetStepUp command should be handled gracefully during tests Created: 20/May/22  Updated: 29/Oct/23  Resolved: 14/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-67194 Replace the logic in our jstest to re... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-05-30, Server Serverless 2022-06-13, Server Serverless 2022-06-27
Participants:
Linked BF Score: 12

 Description   

In our jstests we have had instances of calls to replSetStepUp which do not have their return value asserted leading to unclear failures of the test (the BF returned a timedout when it should have failed due to a failed election)

We should also make sure in cases where a rollback during an election is tolerable, that the parameter `"force": true` is used in order to guarantee the election to succeed.



 Comments   
Comment by Githook User [ 13/Jun/22 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-66626 Failed election during a replSetStepUp command should be handled gracefully during tests
Branch: master
https://github.com/mongodb/mongo/commit/83ceb915faa832c33a5677679916732585be84c2

Comment by Mathis Bessa [ 06/Jun/22 ]

This ticket should also fix the places where `"force": true` is used for replSetStepUp commands in our existing jstests.

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