[SERVER-39902] lockInfo should use UUIDCatalog to map resourceIds to collection names Created: 01/Mar/19  Updated: 29/Oct/23  Resolved: 08/Apr/19

Status: Closed
Project: Core Server
Component/s: Catalog, Storage
Affects Version/s: None
Fix Version/s: 4.1.10

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-39985 Improve transaction lock failure erro... Closed
Problem/Incident
Related
related to SERVER-43910 include Client/OpCtx information in L... Closed
is related to SERVER-40915 Show view namespaces in the LockManag... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6
Sprint: Storage NYC 2019-03-25, Storage NYC 2019-04-08
Participants:
Linked BF Score: 0

 Description   

For efficiency reasons, the lock manager uses 64-bit {{ResourceId}}s instead of strings to lock. However, this makes locking info often hard to use when not using debug builds, as it is non-trivial to map these identifiers back to collection names.

However, the UUIDCatalog actually knows about all collection names and should be able to use them to provide this mapping.



 Comments   
Comment by Eric Milkie [ 18/Jul/19 ]

Backport would not be possible for this particular code commit, since the logic in this area has changed considerably. But it would be possible, with some amount of work, to reimplement this feature for prior versions. We would have to consider the amount of work here and get it scheduled through our regular triage process.

Comment by David Bartley [ 18/Jul/19 ]

Would it be possible to backport this to 4.0 and 3.6? We're planning to periodically log currentOp+lockInfo, and as-is lockInfo isn't particularly useful without namespace information.

Comment by Githook User [ 08/Apr/19 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-39902 lockInfo should use UUIDCatalog to map resourceIds to collection names
Branch: master
https://github.com/mongodb/mongo/commit/28a361799cf6a0d7ea1c3196b19aa9a75795b56d

Generated at Thu Feb 08 04:53:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.