[SERVER-53122] Create findAndNoopUpdate method in Helpers Created: 30/Nov/20  Updated: 29/Oct/23  Resolved: 02/Dec/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-oplog-apply
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-11-30, Sharding 2020-12-14
Participants:
Linked BF Score: 50

 Description   

Applying oplog entries during resharding is subject to write skew when reading from the output collection. In order to avoid this and force a read-write conflict, add a new method to Helpers that will run a find followed by an update using the doc we've just read (so the update is a no-op) in order to force a conflict and avoid write skew. This is meant to mimic WTs reserve method.



 Comments   
Comment by Githook User [ 04/Dec/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-53122 Don't run findAndNoopUpdate dbtest on ephemeral storage engine
Branch: master
https://github.com/mongodb/mongo/commit/f16974e78794ad1ce610df6a1566b4ba65ab284b

Comment by Githook User [ 02/Dec/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-53122 Create findAndNoopUpdate method in Helpers
Branch: master
https://github.com/mongodb/mongo/commit/e3852aff6b82157e2e451c1fc90443dec381df7b

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