Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
3.11.0
-
None
-
Fully Compatible
-
Not Needed
Description
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.