CSRS leaves the balancer lock unprotected briefly between leaving drain mode and the balancer acquiring it

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0-rc4
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2016-10-31, Sharding 2016-11-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Draining mode unlocks all of the config server held distributed locks. The Balancer reacquires the {_id: "balancer"} distlock after drain mode has been left.

      Theoretically, a 3.2 Mongos could take the {_id: "balancer"} distlock in this window. It could briefly hold the distlock for a manual moveChunk, or indefinitely if auto-balancing is enabled. It could be held indefinitely if the config server is holding collection distlocks for migrations it is trying to recover after failover.

            Assignee:
            Nathan Myers (Inactive)
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: