[SERVER-35293] Add counts of active and inactive transactions to serverStatus Created: 30/May/18 Updated: 29/Oct/23 Resolved: 06/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.2, 4.1.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Schultz (Inactive) | Assignee: | Nathan Louie |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | global-txn-metrics | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Backport Requested: |
v4.0
|
||||||||||||||||||||
| Sprint: | Repl 2018-07-02, Repl 2018-07-16 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
We want to output the number of active and inactive transactions in the "transactions" serverStatus section by utilizing the existing metrics tracked in the currentActive and currentInactive fields of MultiDocumentTransactionStats. If they do not already exist, we need to add currentActive and currentInactive fields to the transactions_stats.idl class, so that we can serialize these counters to the serverStatus output object in the TransactionsSSS::generateSection method. We also need to make sure that the ServerTransactionsMetrics::updateStats updates the appropriate fields on the TransactionsStats object. |
| Comments |
| Comment by Githook User [ 16/Aug/18 ] |
|
Author: {'username': 'nxlouie', 'email': 'nathan.louie@10gen.com', 'name': 'Nathan Louie'}Message: (cherry picked from commit 6d9ce16649c73ed1f5d45ed6ca88f61010b73ca9) |
| Comment by Githook User [ 06/Jul/18 ] |
|
Author: {'username': 'nxlouie', 'name': 'Nathan Louie', 'email': 'nathan.louie@10gen.com'}Message: |