[SERVER-35149] Track total number of open transactions in ServerTransactionsMetrics Created: 22/May/18  Updated: 29/Oct/23  Resolved: 18/Jun/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-35129 Create a ServerTransactionsMetrics cl... Closed
is depended on by SERVER-35294 Add total number of open transactions... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-07-02
Participants:

 Description   

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.



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

Author:

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

Message: SERVER-35149 Track total number of open transactions in ServerTransactionsMetrics

(cherry picked from commit 2a81c6190985975913fe75dace4fd157b8e82590)
Branch: v4.0
https://github.com/mongodb/mongo/commit/98ade480cbf073cb6a278c6d41b3a8c2482bdafd

Comment by Githook User [ 18/Jun/18 ]

Author:

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

Message: SERVER-35149 add newline that was removed
Branch: master
https://github.com/mongodb/mongo/commit/f309397f90f78c0eb90f0e113ec9ac4a25f24939

Comment by Githook User [ 18/Jun/18 ]

Author:

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

Message: SERVER-35149 Track total number of open transactions in ServerTransactionsMetrics
Branch: master
https://github.com/mongodb/mongo/commit/2a81c6190985975913fe75dace4fd157b8e82590

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