[DOCS-12588] Document implication of sharded txn on clusterTime in change stream event Created: 01/Apr/19  Updated: 30/Oct/23  Resolved: 28/May/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

https://docs.mongodb.com/manual/reference/change-events/


Issue Links:
Related
related to JAVA-3225 ChangeStreamDocument does not have ge... Closed
Participants:
Days since reply: 4 years, 37 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools
Story Points: 0.25

 Description   

Description

Currently the documentation for clusterTime in a change stream event says:

For events that happened as part of a multi-document transaction, the associated change stream notifications will have the same clusterTime value, namely the time when the transaction was committed

While this is still factually correct in MongoDB 4.2, it implies something that may not be true: that two events with the same clusterTime ALWAYS are part of the same transaction. As schwerin pointed out to me, two transactions that are not causally consistent with each other, and that execute on two different shards, could end up with the same clusterTime for their associated change stream events.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 28/May/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-12540,DOCS-12588: db.coll.watch() default collation, changestream events clusterTime and sharded cluster txns
Branch: master
https://github.com/mongodb/docs/commit/6bf989fb89663fa1e27ccfd9c7e6b7abd59b95a9

Generated at Thu Feb 08 08:05:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.