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

MongoS could recover it's own balancer lock on restart

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.0.8
    • Sharding
    • None
    • Sharding
    • Fully Compatible

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: