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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • 3.6.0-rc1
    • Sharding
    • Sharding
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: