[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:
Depends
is depended on by TOOLS-3254 Investigate changes in SERVER-73571: ... Closed
is depended on by COMPASS-6531 Investigate changes in SERVER-73571: ... Closed
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: SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)

This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes SERVER-73571).
Branch: master
https://github.com/mongodb/mongo/commit/b221af175a73b66a640a92fb364b8cc1a759e5e3

Comment by Githook User [ 15/Feb/23 ]

Author:

{'name': 'Patrick Freed', 'email': 'patrick.freed@mongodb.com', 'username': 'patrickfreed'}

Message: SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)

This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes SERVER-73571).
Branch: master
https://github.com/mongodb/mongo/commit/ff7fcd42e84317e2a34e0b413ee4cc1d9be66884

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