[SERVER-48982] Respond to heartbeats until reconfig thread finishes in StepdownShouldInterruptConfigWrite Created: 18/Jun/20  Updated: 29/Oct/23  Resolved: 23/Jun/20

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

Type: Bug Priority: Major - P3
Reporter: Ali Mir Assignee: Ali Mir
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
Operating System: ALL
Backport Requested:
v4.4
Sprint: Repl 2020-06-29
Participants:
Linked BF Score: 0

 Description   

On slow machines, the StepdownShouldInterruptConfigWrite unit test in replication_coordinator_impl_reconfig_test.cpp can fail due to the reconfig thread here not finishing before we attempt to respond to heartbeats. 

 

A solution would be to wait until the status variable is set, and then respond to heartbeats.



 Comments   
Comment by Githook User [ 20/Aug/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-48982 Respond to heartbeats until reconfig thread finishes in StepdownShouldInterruptConfigWrite

(cherry picked from commit 5a19643afe9881a3a8178a027779b704984b8067)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c81faca5abb75f351f2760cd3a5c971019e3c3f4

Comment by Githook User [ 23/Jun/20 ]

Author:

{'name': 'Ali Mir', 'email': 'ali.mir@mongodb.com', 'username': 'ali-mir'}

Message: SERVER-48982 Respond to heartbeats until reconfig thread finishes in StepdownShouldInterruptConfigWrite
Branch: master
https://github.com/mongodb/mongo/commit/5a19643afe9881a3a8178a027779b704984b8067

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