Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
3.7.1
-
None
Description
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