Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22180

MongoS could recover it's own balancer lock on restart

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.8
    • Component/s: Sharding
    • Labels:
      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?

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            andrew.ryder@mongodb.com Andrew Ryder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: