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

serverStatus support for prepared transactions

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2018-10-22, Repl 2018-11-05, Repl 2018-11-19
    • Linked BF Score:
      0

      Description

      Similar to the transactions diagnostics project, we want to maintain certain metrics in the serverStatus section. The TransactionsSSS::generateSection method returns a BSON object that goes into the transactions section of the serverStatus output.

      This ticket can be split into multiple commits if needed. We will want to output:

      • the total number of prepared transactions
      • the total number of committed prepared transactions
      • the total number of aborted prepared transactions

      We will need to add these counters to ServerTransactionMetrics and the transactions_stats.idl class, so that we can serialize these counters to the serverStatus output object in the TransactionsSSS::generateSection method.

      We will also update the TransactionMetricsObserver to increment/decrement the stats when appropriate.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.chan Jason Chan
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: