[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: |
|
||||||||||||
| 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: |
| 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. |