[JAVA-2889] Update ChangeStream spec to detail usage of startAtOperationTime Created: 18/Jun/18  Updated: 28/Oct/23  Resolved: 19/Jun/18

Status: Closed
Project: Java Driver
Component/s: Query Operations
Affects Version/s: None
Fix Version/s: 3.8.0

Type: Improvement Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-506 Update ChangeStream spec to detail us... Closed
Epic Link: Java MongoDB 4.0 Support

 Description   

If drivers have already implemented DRIVERS-464, they need to update their implementation of how they initially store startAtOperationTime. Instead of setting a default startAtOperationTime when the ChangeStream is created, drivers must omit a default startAtOperationTime. When resuming, drivers must use the operationTime of the initial aggregate command as the default startAtOperationTime value.

See https://github.com/mongodb/specifications/commit/745debcf4624ec820eb9b138cd8f28fa7b1e5782 for the exact implementation details.



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

Author:

{'username': 'rozza', 'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com'}

Message: Change streams now save the startAtOperationTime

JAVA-2889
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/31d4887562b467f7780b7787ee87655fc9ff4ae2

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