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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 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

      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 Nathan Myers
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: