[SERVER-69732] Make resumable_index_build_drain_writes_phase_secondary.js more robust to PrimarySteppedDown errors Created: 15/Sep/22  Updated: 29/Oct/23  Resolved: 28/Oct/22

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

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:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-17, Execution Team 2022-10-31
Participants:
Linked BF Score: 5

 Description   

There are two things we can do to improve the robustness of this test. Since it does not expect the primary to step down, we should increase the election timeout to prevent any flip flopping.

Additionally, the index_build.js library allows InterruptedDueToReplStateChange errors on the primary while building an index and waiting for a majority. It should also allow PrimarySteppedDown errors since those result in the same behavior.



 Comments   
Comment by Githook User [ 27/Oct/22 ]

Author:

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

Message: SERVER-69732 Increase election timeout in resumable_index_build_drain_writes_phase_secondary.js
Branch: master
https://github.com/mongodb/mongo/commit/c8b65dcce7263facaa4c8edb8d2612d9068fb05d

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