[SERVER-63820] BalancerCommandsScheduler should load the migrations to recover while holding its state mutex Created: 18/Feb/22  Updated: 29/Oct/23  Resolved: 18/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 5.3.0-rc1

Type: Bug Priority: Major - P3
Reporter: Paolo Polato Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3
Participants:

 Description   

In a recent code change, the logic to load the migration recovery info at start() time has been moved out of the section protected by the mutex.

This might be cause the recovery info op to fail if BalancerCommandsScheduler::start() gets invoked while a prior stop() is still being executed.



 Comments   
Comment by Githook User [ 18/Feb/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-63820 load BalancerScheduler recovery info while holding mutex
Branch: v5.3
https://github.com/mongodb/mongo/commit/e3a6fe7911429b80fa8f74cdc3dae95ec7d2bbe5

Comment by Githook User [ 18/Feb/22 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-63820 load BalancerScheduler recovery info while holding mutex
Branch: master
https://github.com/mongodb/mongo/commit/7ced2da4578e16c0d930c077f07d58a60d26812a

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