[SERVER-35174] Add readConcern and readTimestamp to transaction sub-document of currentOp Created: 22/May/18  Updated: 29/Oct/23  Resolved: 25/Jul/18

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

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

Issue Links:
Backports
Depends
depends on SERVER-35173 Add autocommit value to transaction s... Closed
Documented
is documented by DOCS-12409 Docs for SERVER-35174: Add readConcer... Closed
Related
related to SERVER-35173 Add autocommit value to transaction s... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-06-18, Repl 2018-07-02, Repl 2018-07-16, Repl 2018-07-30
Participants:

 Description   

We want the currentOp entry for both active and inactive transactions to contain an entry with a transaction.parameters sub document that contains the readConcern and the readTimestamp of the transaction. The readConcern we output here should be the readConcern after any potential upconvert, which should be stored in ReadConcernArgs::_level. The read timestamp should be stored on the session.

For active transactions, the CurOp::reportCurrentOpForClient method should attach this information to the appropriate sub-document, and for inactive transactions, the Session::reportStashedState method should attach it.



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

Author:

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

Message: SERVER-35174 Added readConcern and readTimestamp to CurOp's transaction sub-document

(cherry picked from commit 925cfae906b8b335bd657752d4b6a9297dafaaca)
Branch: v4.0
https://github.com/mongodb/mongo/commit/42a1109d762a63d01f33e9387ac85d549aecf962

Comment by Githook User [ 25/Jul/18 ]

Author:

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

Message: SERVER-35174 Added readConcern and readTimestamp to CurOp's transaction sub-document
Branch: master
https://github.com/mongodb/mongo/commit/925cfae906b8b335bd657752d4b6a9297dafaaca

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