-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Diagnostics, Replication
-
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.
- depends on
-
SERVER-35129 Create a ServerTransactionsMetrics class and store it as a decoration on the ServiceContext
- Closed
- is depended on by
-
SERVER-35294 Add total number of open transactions to serverStatus
- Closed