Resharding writes to donor documents should take exclusive locks

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Daniel Gottlieb (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: