[SERVER-79796] applyOp in ReshardingOplogApplicationRules sets lock acquisition deadline on opCtx Created: 07/Aug/23  Updated: 02/Feb/24  Resolved: 26/Jan/24

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

Type: Bug Priority: Major - P3
Reporter: Abdul Qadeer Assignee: Wenqin Ye
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-75580 Thread-through `ScopedCollectionOrVie... Closed
Assigned Teams:
Cluster Scalability
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3, v7.2
Sprint: Cluster Scalability 2024-1-22, Cluster Scalability 2024-2-5
Participants:
Linked BF Score: 13
Story Points: 3

 Description   

As part of SERVER-75580, _applyInsertOrUpdate is modified to run the collection lock acquisition function as a callback to OperationContext::runWithDeadline with deadline of gReshardingOplogApplierMaxLockRequestTimeoutMillis which has a default value of 5ms. This sets a deadline of lock acquisition to the whole function call back incorrectly, as the deadline is meant specifically for time to acquire the collection lock. This happens at multiple places in other applyOp functions and need to be fixed. 



 Comments   
Comment by Githook User [ 31/Jan/24 ]

Author:

{'name': 'Wenqin', 'email': 'wenqinYe@users.noreply.github.com', 'username': 'wenqinYe'}

Message: SERVER-79796: applyOp in ReshardingOplogApplicationRules sets lock acquisition deadline on opCtx (#18072)

(cherry picked from commit b89480eab9e39c7e0b904c016987d6dba6e6fc25)

GitOrigin-RevId: 701a9b24025ddc9ce4041f9d2341a2324f67f9ec
Branch: v7.3
https://github.com/mongodb/mongo/commit/fea4bc28daea9f19cdc6765dfd034469db2d1f35

Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'Wenqin', 'email': 'wenqinYe@users.noreply.github.com', 'username': 'wenqinYe'}

Message: SERVER-79796: applyOp in ReshardingOplogApplicationRules sets lock acquisition deadline on opCtx (#18072)

GitOrigin-RevId: b89480eab9e39c7e0b904c016987d6dba6e6fc25
Branch: master
https://github.com/mongodb/mongo/commit/b0e6b177b3a1ad22551bbd0fd84752acceb8690d

Generated at Thu Feb 08 06:41:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.