[SERVER-76001] Add serverStatus metrics for PeriodicThreadToAbortExpiredTransactions Created: 12/Apr/23  Updated: 29/Oct/23  Resolved: 04/Jul/23

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

Type: Improvement 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:
Depends
is depended on by COMPASS-6998 Investigate changes in SERVER-76001: ... Closed
Documented
is documented by DOCS-16242 [SERVER] Investigate changes in SERVE... Closed
Related
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Sprint: Execution EMEA Team 2023-07-10
Participants:
Case:

 Description   

This thread is imperative to ensure forward progress of the system. Since we've seen multiple hangs where the thread gets stuck, we should add serverStatus metrics which track the number of of transactions killed by the thread.

Additionally, we should consider adding a log line to indicate which session(s) the thread is trying to abort.



 Comments   
Comment by Haley Connelly [ 03/Jul/23 ]

This ticket adds a new serverStatus field
"metrics.abortExpiredTransactions.passes"

The "passes" is incremented after a successful pass trying to abort all expired transactions and a given time. 

If the "passes" stops incrementing for a long duration, either the thread is working to abort many expired transactions or the thread may be "stuck". See SERVER-77172 for more details on how the thread can get stuck. 

Comment by Githook User [ 03/Jul/23 ]

Author:

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

Message: SERVER-76001 Add serverStatus metrics for "abortExpiredTransactions" thread
Branch: master
https://github.com/mongodb/mongo/commit/2c5a74dfd5cfac8e264d9dd24a6761ea4b55f1dc

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