[SERVER-74966] Improve serverless lock/access blocker acquire/release semantics Created: 16/Mar/23  Updated: 29/Oct/23  Resolved: 29/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Didier Nadeau Assignee: Didier Nadeau
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-75069 Reapplying an insert donor state doc ... Closed
Related
related to SERVER-75069 Reapplying an insert donor state doc ... Closed
is related to SERVER-72370 Update in-memory serverless locks tra... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-04-03
Participants:

 Description   

In this ticket we aim to improve the acquire/release semantics of the serverless locks and the tenant access blockers. There are two main issues to address :

 

The fixes :

  • Remove `if (onPrimary)` conditions.
  • Move `rollback` handler as close to acquire serverless lock and mtab (and decouple the handlers).
  • Review all places we use `acquireLock` to ensure correct behavior.


 Comments   
Comment by Githook User [ 29/Mar/23 ]

Author:

{'name': 'Didier Nadeau', 'email': 'didier.nadeau@mongodb.com', 'username': 'nadeaudi'}

Message: SERVER-74966 Improve serverless lock/mtab acquire/release semantics
Branch: master
https://github.com/mongodb/mongo/commit/01cfe19591f6bb10032981386b8bf2340222e20b

Comment by Suganthi Mani [ 20/Mar/23 ]

didier.nadeau@mongodb.com  In today's triage, I was talking about the related ticket SERVER-72370  which doesn't update Serverless lock transactionally for MTM protocol on recipient side. 

Re-reading the description of this ticket, I agree, that this a problem for split, merge and MTM protocol. And, SERVER-73397 (New shard merge recipient POS instance) has not addressed this issue on the shard merge recipient side.

Comment by Didier Nadeau [ 20/Mar/23 ]

didier.nadeau@mongodb.com check if there are duplicated tickets.

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