Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Server Security
-
Fully Compatible
-
Security 2023-01-09, Security 2023-01-23
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