[SERVER-72243] Add serverStatus counters for transaction retries Created: 19/Dec/22  Updated: 29/Oct/23  Resolved: 17/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Spencer Jackson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-01-09, Security 2023-01-23
Participants:

 Description   

The txn api in src/mongo/db/transaction/transaction_api.cpp automatically retries on certain errors.

Add a new serverStatus section (there may also be one that make sense to extend) that tracks the following
1. Aggregated number of txns retried due to ErrorCodes::TransactionAPIMustRetryTransaction
2. Aggregated number of txns retried due to ErrorCodes::TransactionAPIMustRetryCommit
3. Number of successful runs of TransactionWithRetries::run



 Comments   
Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-72243 Add serverStatus counters for transaction retries
Branch: master
https://github.com/mongodb/mongo/commit/865e64d284737f3ea54bd86b998863796b4f9c9a

Comment by Githook User [ 13/Jan/23 ]

Author:

{'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}

Message: SERVER-72243 Verify internal transaction metrics exist
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/9f0c180a62162c0269860c6e10c620a3e76fe0ef

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