Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72243

Add serverStatus counters for transaction retries

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • 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

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: