-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Server Security
-
Fully Compatible
-
Security 2023-01-09, Security 2023-01-23
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