-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.0.8
-
Component/s: Sharding
-
None
-
Sharding
-
Fully Compatible
When a MongoS is restarted (for any reason) and happens to be holding the Balancer lock at the time, it could pick this up again if it comes back before another MongoS forces it.
At the moment anything that was inflight is effectively cancelled due to the dropped lock, and another MongoS (or possibly the same MongoS) will force the lock 15 minutes later.
Can a MongoS safely identify itself as the owner of the balancer lock if it were to check for such state at start-up?