[SERVER-73571] CurOp::_lockStatsBase is never set Created: 02/Feb/23 Updated: 29/Oct/23 Resolved: 17/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.0 |
| Fix Version/s: | 7.0.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Patrick Freed | Assignee: | Patrick Freed |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Service Arch 2023-02-06, Service Arch 2023-02-20 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Each CurOp is meant to store a snapshot of its opCtx's lock stats taken at the time of the CurOp's creation. These snapshots would then be used when retrieving the stats for a given sub-operation to subtract out any stats recorded by its super-operations. However, the snapshots are never actually being taken and stored properly, so this subtraction is never occurring. As a result, all sub-operations report lock acquisition stats made by their super-operations. |
| Comments |
| Comment by Githook User [ 17/Feb/23 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes |
| Comment by Githook User [ 15/Feb/23 ] |
|
Author: {'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}Message: This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes |