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

Recipient shard should fail migration if it already has the collection with a different UUID

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc5, 3.7.1
    • Affects Version/s: 3.6.0-rc3
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v3.6
    • Sharding 2017-11-13, Sharding 2017-12-04
    • 0

      If a recipient shard has an entry for the collection, it does not ask the donor for the UUID.

      So, it can accept a chunk from a different incarnation of the collection, resulting in a UUID inconsistency between the sharding catalog and the collection on the recipient shard.

      This garbage state from a previous incarnation of a collection can exist on a recipient for a variety of reasons, such as:

      • a movePrimary failed after updating the sharding catalog but before dropping the collection from the old primary
      • orphaned chunks from the previous collection still exist
      • a user manually created the collection directly on the shard

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: