-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.11.0
-
Component/s: Change Streams
-
None
-
Fully Compatible
-
Not Needed
This bug description is a result of investigating JAVA-4155. The code
cursor.next(callback); cachePostBatchResumeToken(cursor);
cursor.tryNext(callback); cachePostBatchResumeToken(cursor);
in AsyncChangeStreamBatchCursor.java results in having a race condition: resumeToken may not yet be known when retrying the next/tryNext operation.