-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 3.7.1
-
Component/s: Query Operations
-
None
With the current MappingIterable.first() implementation:
@Nullable@Overridepublic V first() {
MongoCursor<V> iterator = iterator();
if (!iterator.hasNext()) {
return null;
}
return iterator.next();
}
It seems that the MongoCursor.close() method is not called on a col.find().map().first() call.
HTH