[SERVER-33551] Track snapshot read transactions with MultiDocumentTransactionState in Session Created: 28/Feb/18  Updated: 29/Oct/23  Resolved: 19/Mar/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Task Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-33626 Cleanup various ways of checking if w... Closed
Gantt Dependency
has to be done after SERVER-32323 Update transaction table appropriatel... Closed
Related
is related to SERVER-33213 Track find commands with txn machinery Closed
is related to SERVER-33626 Cleanup various ways of checking if w... Closed
is related to SERVER-33838 Replace setStashedCursor and hasStash... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2018-03-12, Repl 2018-03-26
Participants:

 Comments   
Comment by Githook User [ 19/Mar/18 ]

Author:

{'email': 'matthew.russotto@10gen.com', 'name': 'Matthew Russotto', 'username': 'mtrussotto'}

Message: SERVER-33551 Switch Pipeline to use session interface to determine if in a transaction or snapshot read.
Branch: master
https://github.com/mongodb/mongo/commit/4ce3eca38b5e8c786c33242c1a625728e1c1dcfe

Comment by Githook User [ 15/Mar/18 ]

Author:

{'email': 'matthew.russotto@10gen.com', 'name': 'Matthew Russotto', 'username': 'mtrussotto'}

Message: SERVER-33551 Track snapshot read transactions with MultiDocumentTransactionState in Session
Branch: master
https://github.com/mongodb/mongo/commit/388d8c1245e61c4fa906254f711aec8ee7fe7486

Comment by David Storch [ 09/Mar/18 ]

matthew.russotto, in commit ed1e2b4d2a under SERVER-33541, I added a TODO to be handled as part of this ticket. There is a assertion in the aggregation system where we fail if a stage is illegal to use inside a transaction:

https://github.com/mongodb/mongo/blob/ed1e2b4d2a4987e3744484f9482fdc7a0e119e94/src/mongo/db/pipeline/pipeline.cpp#L203-L205

This needs to be updated to use the new inSnapshotReadOrMultiDocumentTransaction() method.

Comment by Spencer Brody (Inactive) [ 28/Feb/18 ]

As part of this we should change all places in the code that make decisions around whether the opCtx has a WUOW associated with it to checking whether the Session isInAMultiDocumentTransaction

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