-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
Query 2019-03-11, Query 2019-04-22
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.
- depends on
-
SERVER-39675 Look up prepared transaction when a Change Stream encounters its commit
- Closed
-
SERVER-40200 Address "query_exec" dependency on "transaction" library.
- Closed