[SERVER-40915] Show view namespaces in the LockManager's ResourceId::toString() function Created: 30/Apr/19  Updated: 29/Oct/23  Resolved: 01/Jul/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Daniel Solnik (Inactive)
Resolution: Fixed Votes: 0
Labels: execution_intern, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-39902 lockInfo should use UUIDCatalog to ma... Closed
related to SERVER-43910 include Client/OpCtx information in L... Closed
is related to SERVER-39985 Improve transaction lock failure erro... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Execution Team 2019-07-01
Participants:
Linked BF Score: 5

 Description   

In SERVER-39902, the lock managers ResourceId class started using the UUIDCatalog to resolve its namespace when calling the toString() function. However, views do not get tracked in the UUIDCatalog and they cannot resolve their namespaces as a consequence. We should make it so that we can also resolve view namespaces in the ResourceId class.

One way we could do this is by extending the functionality of ViewCatalog::lookup() function to take in ResourceId's and return the relevant namespace, if it exists. We would also require a similar way to keep track of ResourceIds -> NamespaceStrings, like in the UUIDCatalog.



 Comments   
Comment by Githook User [ 26/Jul/19 ]

Author:

{'name': 'Daniel Solnik', 'email': 'dansolnik@gmail.com', 'username': 'Dsolnik'}

Message: SERVER-40915 View namespaces now included in the LockManager's ResourceId::toString()

(cherry picked from commit 0dd86314ef266490ca0d7bd76c49d3f09a7ada78)
Branch: v4.2
https://github.com/mongodb/mongo/commit/05dd2382484e10b53428af57c1cb7396497ad628

Comment by Githook User [ 01/Jul/19 ]

Author:

{'name': 'Daniel Solnik', 'email': 'dansolnik@gmail.com', 'username': 'Dsolnik'}

Message: SERVER-40915 View namespaces now included in the LockManager's ResourceId::toString()
Branch: master
https://github.com/mongodb/mongo/commit/0dd86314ef266490ca0d7bd76c49d3f09a7ada78

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