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

shardCollection legacy should hold the distlocks while writing chunk metadata

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Linked BF Score:
      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

          Issue Links

            Activity

              People

              Assignee:
              jordi.serra-torrens Jordi Serra Torrens
              Reporter:
              jordi.serra-torrens Jordi Serra Torrens
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: