[SERVER-54610] Resharding writes to donor documents should take exclusive locks Created: 18/Feb/21  Updated: 29/Oct/23  Resolved: 14/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-55680 Generate, pin, and replicate minFetch... Closed
Related
related to SERVER-57195 Convert resharding document deletion ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding 2021-06-14, Sharding 2021-06-28
Participants:
Story Points: 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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 16/Jun/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-54610 Make resharding writes to donor documents take exclusive locks
Branch: SERVER-34632
https://github.com/mongodb/mongo/commit/9cf1509ad2664830d37a7a128d43752dcac8556a

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-54610 Make resharding writes to donor documents take exclusive locks

(cherry picked from commit 9cf1509ad2664830d37a7a128d43752dcac8556a)
Branch: v5.0
https://github.com/mongodb/mongo/commit/ed7a2f95c6e3a403ceaa76530959c9fddc3684dd

Comment by Githook User [ 14/Jun/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-54610 Make resharding writes to donor documents take exclusive locks
Branch: master
https://github.com/mongodb/mongo/commit/9cf1509ad2664830d37a7a128d43752dcac8556a

Generated at Thu Feb 08 05:34:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.