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

Track total number of open transactions in ServerTransactionsMetrics

    • Fully Compatible
    • v4.0
    • Repl 2018-07-02

      We want to track the total number of open transactions. To do this, we should add a currentOpen counter field to ServerTransactionsMetrics to track this metric. A transaction is considered "open" for the period of time after it starts and before it commits or aborts. We will update the ServerTransactionsMetrics::currentOpen counter whenever a transaction starts, and decrement it anytime it commits or aborts.

            Assignee:
            nathan.louie Nathan Louie
            Reporter:
            william.schultz@mongodb.com Will Schultz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: