-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Command Operations
-
None
com.mongodb.operation.ListCollectionsOperation.FilteringBatchCursor and com.mongodb.operation.ListCollectionsOperation.FilteringAsyncBatchCursor report incorrect results due to the filtering behavior. In the case where an entire batch is filtered out, hasNext can return true when there are no more results, and next can return an empty batch.