[SERVER-35147] Track total number of committed and aborted transactions in ServerTransactionsMetrics Created: 22/May/18  Updated: 29/Oct/23  Resolved: 15/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-35295 Add total number of committed and abo... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-06-18
Participants:

 Description   

We want to track the total number of transactions that committed or aborted since the last time the server started. To do this, we should add two counter fields to ServerTransactionsMetrics that tracks these metrics. We will increment the appropriate counter every time a multi-document transaction commits or aborts.



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

Author:

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

Message: SERVER-35147 Track total number of committed and aborted transactions in ServerTransactionsMetrics

(cherry picked from commit 76398baf84773e0e5766eb2e9d53d290933806fd)
Branch: v4.0
https://github.com/mongodb/mongo/commit/74e4ecfcccf689ff9220baf76bfda5bbccd4d443

Comment by Githook User [ 15/Jun/18 ]

Author:

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

Message: SERVER-35147 Track total number of committed and aborted transactions in
ServerTransactionsMetrics
Branch: master
https://github.com/mongodb/mongo/commit/76398baf84773e0e5766eb2e9d53d290933806fd

Comment by Nathan Louie [ 11/Jun/18 ]

Curious: Do we want to put these two counter fields in the transaction_stats.idl like we did for SERVER-35146?

Edit: Never mind, unlike the above ticket, adding the fields to transaction_stats.idl is in a separate ticket SERVER-35295.

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