Add serverStatus counters for transaction retries

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • Security 2023-01-09, Security 2023-01-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Spencer Jackson
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: