[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: |
|
||||||||||||||||||||||||||||
| 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: |