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

Resharding writes to donor documents should take exclusive locks

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0-rc2, 5.1.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding 2021-06-14, Sharding 2021-06-28
    • 1

    Description

      Resharding's management of the oldest timestamp pin scans over all of the documents in the donor collection (one document per concurrent resharding operation), but only writes to a single document. In a future world where there can be multiple resharding operations happening, this can result in write-skew that can manifest as "leaking" history until a restart, rollback or new resharding operation.

      This ticket should also uncomment the locking invariant.

      Attachments

        Activity

          People

            haley.connelly@mongodb.com Haley Connelly
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: