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

shardCollection legacy should hold the distlocks while writing chunk metadata

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • 25

    Description

      There is a bug where:
      1. [th1] shardCollection releases distLocks (which were acquired here) here.
      2. [th2] A dropCollection is now able to acquire the distlocks and proceed. Runs until here.
      3. [th1] shardCollection writes chunks
      4. [th2] dropCollection runs setShardVersion on all shards with requested version UNSHARDED. However, shardCollection has written chunks, so setShardVersion fails here

      shardCollection needs to be still holding the distlocks when writing the chunks.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: