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

mapReduce can create sharded output collection on shards with wrong UUID if drop/recreate called concurrently

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.0-rc1
    • Component/s: Sharding
    • Labels:
    • Sharding
    • ALL

      If mapReduce is run with sharded output, mongos sends the UUID for the sharded output collection to the shards as part of the second phase, so that shards create the collection on themselves with the correct UUID.

      However, there is a window in between when mongos calls shardCollection on the config server to obtain the UUID and takes the distlock itself in which the output collection can be dropped, recreated, and re-sharded with a different UUID.

      This is the only place mongos tells shards what UUID to use when creating a collection.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: