-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Performance, Reads
-
None
-
Not Needed
-
Currently, if getTimestamp(cursor.getResumeToken()).compareTo(partition.getEndOffsetTimestamp()) is 0, MongoMicroBatchPartitionReader.next calls tryNext, but it shouldn't do it because such a request is guaranteed to return no change stream events because of the Filters.lt("clusterTime", partition.getEndOffsetTimestamp()) filter. Thanks to that same filter, the current behavior does not affect correctness, and may only affect performance.
- links to