[SERVER-77227] Layering violation between d_concurrency and lock_manager Created: 17/May/23  Updated: 29/Oct/23  Resolved: 22/May/23

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

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-2144-Cleanup
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-77213 Move the all transactions-related sta... Backlog
Related
related to SERVER-77378 Complete TODO listed in SERVER-77227 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-05-29
Participants:

 Description   

The RAII classes in d_concurrency are strictly for driving the locker of an operation context, which in turn builds on top of the LockManager.

The implementation of ResourceId::toString() violates that layering by reaching up the stack. This dependency needs to be broken as a prerequisite to move the Locker out of the OperationContext and into TranasctionResources.



 Comments   
Comment by Githook User [ 23/May/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-77227 Complete missing TODO to remove ServiceContext argument
Branch: master
https://github.com/mongodb/mongo/commit/999ae5bfcdbe49fbde445058c8438833f6a39ec9

Comment by Githook User [ 22/May/23 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-77227 Move the registration of ResourceMutex(es) to the ResourceCatalog
Branch: master
https://github.com/mongodb/mongo/commit/b92c9babdb04da7a8aa7c09ea742116ab26d4bd4

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