New config server primary unlocks all distlocks held by previous config server on stepup

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding EMEA
    • ALL
    • Sharding 2019-07-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Config servers all have the same process id of "ConfigServer."

      On transition to primary, a config node unlocks all existing distlocks with the process id "ConfigServer."

      This means that DDL operations which serialize on the config server via a distlock but whose business logic is executed by a shard (moveChunk, movePrimary, and shardCollection) are suspect, because the shard can keep executing the business logic outside the distlock. For example, you could drop a database concurrently with sharding a collection and end up with a config.collections entry without a corresponding config.databases entry.

      Note that the track unsharded project will add two more DDL operations with the shardCollection pattern (renameCollection and convertToCapped).

            Assignee:
            [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: