-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
The MongoDB documentation (https://www.mongodb.com/docs/manual/reference/change-events/) specifies that for a change event, the transaction associated with that event can be uniquely identified by the lsid and txnNumber fields in the ChangeStream document.
The problem during change data capture using ChangeStream is that I'm not able to determine whether the transaction has ended or not unless and otherwise, the next transaction comes in (different txnNumber) or a non-transactional database operation (lsid and txnNumber are null using the Java driver) is performed. Is there any way to determine if the current transaction has ended or not from the ChangeStream without needing another consecutive operation?
- duplicates
-
SERVER-72885 Are change events of a single transaction always grouped together?
- Closed
- is related to
-
SERVER-72885 Are change events of a single transaction always grouped together?
- Closed
- related to
-
SERVER-40437 [Change Streams] Allow to recognize last change of transaction
- Backlog