[SERVER-70467] Prevent manually using RESOURCE_MUTEX Created: 11/Oct/22  Updated: 29/Oct/23  Resolved: 16/Jan/23

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Noma Assignee: Daniel Gomez Ferro
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-70154 DatabaseShardingState inappropriately... Closed
depends on SERVER-70322 BalancerStatsRegistry inappropriately... Closed
depends on SERVER-70431 Checkpointing manually constructs Res... Closed
Related
related to SERVER-69893 Add the ability to acquire lock manag... Closed
is related to SERVER-74938 POC PM-2850 Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-01-23
Participants:

 Description   

RESOURCE_MUTEX should not be used manually when constructing a ResourceId. Instead, ResourceMutex should be used which goes through the ResourceIdFactory. We should enforce this to prevent misuses.



 Comments   
Comment by Githook User [ 16/Jan/23 ]

Author:

{'name': 'Daniel Gómez Ferro', 'email': 'daniel.gomezferro@mongodb.com', 'username': 'dgomezferro'}

Message: SERVER-70467 Forbid manual RESOURCE_MUTEX creation
Branch: master
https://github.com/mongodb/mongo/commit/2cb27e77bffdf3ce9ee1715904a3870f764e5ade

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