[SERVER-35457] Add transaction expiry time to transaction sub-document of currentOp output Created: 06/Jun/18  Updated: 29/Oct/23  Resolved: 31/Jul/18

Status: Closed
Project: Core Server
Component/s: Diagnostics, Replication
Affects Version/s: None
Fix Version/s: 4.1.2

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Jinny Byun
Resolution: Fixed Votes: 0
Labels: per-txn-metrics
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-35173 Add autocommit value to transaction s... Closed
Documented
is documented by DOCS-12411 Docs for SERVER-35457: Add transactio... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-08-13
Participants:

 Description   

We want the currentOp entry for both active and inactive transactions to contain the expiry time of the transaction. This is the time at which the transaction, if still running, will be aborted due to a timeout. This expiration time is already stored in the Session::_transactionExpireDate variable, so we should be able to retrieve it from there. We want to store this value in the transaction.expiry field of the currentOp entry.



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

Author:

{'username': 'jinichu', 'email': 'jinnybyun@gmail.com', 'name': 'jinichu'}

Message: SERVER-35457 Add expiryTime to CurrentOp's transaction sub-document

(cherry picked from commit c7b9e8e669fa488564a94f90485f5bd2b0e0aebb)
Branch: v4.0
https://github.com/mongodb/mongo/commit/1aaae99166cfd894748caaf8bf29cac7858f4c4e

Comment by Githook User [ 31/Jul/18 ]

Author:

{'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}

Message: SERVER-35457 Add expiryTime to CurrentOp's transaction sub-document
Branch: master
https://github.com/mongodb/mongo/commit/c7b9e8e669fa488564a94f90485f5bd2b0e0aebb

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