-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.1.9
-
Component/s: Sharding
-
None
-
Service Arch
-
ALL
The PeriodicBalancerConfigRefresher puts its PeriodicJob on the ServiceContext's PeriodicRunner, and PeriodicJobs on the ServiceContext's PeriodicRunner can be modified directly by shutdown.
The PeriodicBalancerConfigRefresher is also modified on stepdown.
Since shutdown and stepdown can occur concurrently, and PeriodicJob has invariants that its methods are called in a specific order, either PeriodicBalancerConfigRefresher needs to add synchronization on top of its PeriodicJob, or PeriodicJob should have more lax invariants.
- duplicates
-
SERVER-38679 Race between PeriodicBalancerConfigRefresher::onStepDown() and mongod shutdown
- Closed