[SERVER-78854] CurOp::completeAndLogOperation waits on a ticket to acquire the GlobalLock Created: 11/Jul/23  Updated: 29/Oct/23  Resolved: 17/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.3

Type: Bug Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Sprint: Execution EMEA Team 2023-07-24
Participants:

 Description   

CurOp::completeAndLogOperation() reacquires the GlobalLock, but operations must first wait for a ticket. This is problematic for visibility in an overloaded system. If there are no available tickets, slow operations won't be logged until the GlobalLock can be reacquired (a ticket is granted). 

The priority should be set to kImmediate to bypass ticket acquisition.



 Comments   
Comment by Githook User [ 03/Oct/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-78854 bypass ticket acquisition in CurOp::completeAndLogOperation

(cherry picked from commit c76b8a0ff6de4e0dd02bfab29ebff1e0c85b3bd4)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d3ae266d4f3d7d74b287a372ca6f98e3715068af

Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-78854 bypass ticket acquisition in CurOp::completeAndLogOperation
Branch: master
https://github.com/mongodb/mongo/commit/c76b8a0ff6de4e0dd02bfab29ebff1e0c85b3bd4

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