[SERVER-35294] Add total number of open transactions to serverStatus Created: 30/May/18  Updated: 29/Oct/23  Resolved: 05/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:
Backports
Depends
depends on SERVER-35149 Track total number of open transactio... Closed
is depended on by SERVER-35793 Write concurrency test to verify serv... Closed
Documented
is documented by DOCS-11898 Docs for SERVER-35294: Add total numb... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-07-02, Repl 2018-07-16
Participants:

 Description   

We want to output the total number of open transactions in the "transactions" serverStatus section by utilizing the existing metrics tracked in ServerTransactionsMetrics::currentOpen. We need to add a currentOpen field to the transactions_stats.idl class, so that we can serialize the counter to the serverStatus output object in the TransactionsSSS::generateSection method. The TransactionsSSS::generateSection method returns a BSON object that goes into the transactions section of the serverStatus output.



 Comments   
Comment by Githook User [ 16/Aug/18 ]

Author:

{'username': 'nxlouie', 'email': 'nathan.louie@10gen.com', 'name': 'Nathan Louie'}

Message: SERVER-35294 Add total number of open transactions to serverStatus

(cherry picked from commit 591dc25f7d7d3d637a9320b19b02c7f548cdf367)
Branch: v4.0
https://github.com/mongodb/mongo/commit/26a66f586e6d482f5168db2ac39c5e3d10c0889a

Comment by Githook User [ 05/Jul/18 ]

Author:

{'username': 'nxlouie', 'name': 'Nathan Louie', 'email': 'nathan.louie@10gen.com'}

Message: SERVER-35294 Add total number of open transactions to serverStatus
Branch: master
https://github.com/mongodb/mongo/commit/591dc25f7d7d3d637a9320b19b02c7f548cdf367

Generated at Thu Feb 08 04:39:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.