[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: |
|
||||||||||||||||||||
| Assigned Teams: |
Storage Execution
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Sprint: | Execution EMEA Team 2023-07-10 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||
| 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 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: |