[JAVA-2894] FindIterable.map().first() does not seem to close the underlying cursor Created: 24/Jun/18 Updated: 28/Oct/23 Resolved: 26/Jun/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Query Operations |
| Affects Version/s: | 3.7.1 |
| Fix Version/s: | 3.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Julien Buret | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
With the current MappingIterable.first() implementation:
@Nullable@Overridepublic V first() {
It seems that the MongoCursor.close() method is not called on a col.find().map().first() call. HTH |
| Comments |
| Comment by Githook User [ 26/Jun/18 ] |
|
Author: {'username': 'rozza', 'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com'}Message: Ensure MappingIterables delegate to wrapped iterable
|
| Comment by Ross Lawley [ 25/Jun/18 ] |
|
Thanks jburet for the ticket. We'll look to fix in a forthcoming release. Ross |