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

Resharding writes to donor documents should take exclusive locks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding 2021-06-14, Sharding 2021-06-28
    • 1

      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.

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

              Created:
              Updated:
              Resolved: