[SERVER-39676] Investigate possibility of adapting TransactionHistoryIterator for use in Change Streams Created: 19/Feb/19  Updated: 29/Oct/23  Resolved: 03/Apr/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.1.10

Type: Improvement Priority: Major - P3
Reporter: Justin Seyster Assignee: Justin Seyster
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-39675 Look up prepared transaction when a C... Closed
depends on SERVER-40200 Address "query_exec" dependency on "t... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-03-11, Query 2019-04-22
Participants:

 Description   

The TransactionHistoryIterator has the right interface for the prepared transaction lookups that we need in a Change Stream, but it uses the DBDirectClient, which may turn out to be impractical for use in an aggregation pipeline.

It may be possible to make the TransactionHistoryIterator more widely usable by replacing the DBDirectClient call with a call to MongoProcessInterface::lookupSingleDocument(), which is the interface used by DocumentSourceLookupChangePostImage.

Alternatively, we may decide to factor out the code for writing the query so that even if the Change Stream wants to use its own method for talking to the database, it can at least reuse the query-writing logic.



 Comments   
Comment by Githook User [ 05/Apr/19 ]

Author:

{'email': 'benety@mongodb.com', 'name': 'Benety Goh', 'username': 'benety'}

Message: SERVER-39676 add missing library dependency
Branch: master
https://github.com/mongodb/mongo/commit/0158d96ae7e728a9732d24ccea4e929b779d082c

Comment by Githook User [ 03/Apr/19 ]

Author:

{'email': 'justin.seyster@mongodb.com', 'name': 'Justin Seyster', 'username': 'jseyster'}

Message: SERVER-39676 Replace DBDirectClient in TransactionHistoryIterator
Branch: master
https://github.com/mongodb/mongo/commit/dd589aa07a0155cdeaa70f0403466aabcfaa5186

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