[JAVA-3871] Change stream resumption does not always include resumeAfter Created: 26/Oct/20  Updated: 28/Oct/23  Resolved: 20/Jan/21

Status: Closed
Project: Java Driver
Component/s: Change Streams
Affects Version/s: None
Fix Version/s: 4.2.0, 3.12.8

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-3910 Investigate test failure on latest: s... Closed
Related
is related to JAVA-3910 Investigate test failure on latest: s... Closed

 Description   

The Test consecutive resume test from the unified test file format specification uncovers a bug in the Java driver. The test expects that after a failed getMore, the subsequent aggregate command includes the resumeAfter field populated with the postBatchResumeToken from the initial aggregate command. The Java driver fails this test.

The bug seems to only happen in situations where the initiating aggregate command contains no results and the first getMore command fails.



 Comments   
Comment by Githook User [ 20/Jan/21 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Ensure that resumeToken is included on resume attempts (#634)

JAVA-3871
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1c318a6f3b81c06c73e9e54495dd399524043805

Generated at Thu Feb 08 09:00:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.