[SERVER-47758] HBStepdownAndReconfigTest unit tests must properly wait for step down to complete before checking new term value Created: 24/Apr/20  Updated: 29/Oct/23  Resolved: 27/Apr/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: William Schultz (Inactive)
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-46381 Test concurrent reconfig and stepdown Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

Some of the tests in the HBStepdownAndReconfigTest suite check for the node's new term after a step down, but if the step down is too slow, the 1 second sleep here won't be sufficient to ensure the step down has completed. We should make sure these tests don't check the new term until they are sure the step down is complete.



 Comments   
Comment by William Schultz (Inactive) [ 27/Apr/20 ]

Doesn't need to be backported to 4.4 since SERVER-46381 wasn't backported.

Comment by Githook User [ 27/Apr/20 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-47758 Wait for stepdown to complete and config to be stored in HBStepdownAndReconfigTest unit tests
Branch: master
https://github.com/mongodb/mongo/commit/d83d03d14856262e3ad6742f257c3c6054158506

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