[JAVA-703] GridFS List<GridFSDBFile> find( DBObject query ,...) should close cursor Created: 28/Nov/12  Updated: 19/Mar/13  Resolved: 23/Jan/13

Status: Closed
Project: Java Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 2.11.0

Type: Bug Priority: Major - P3
Reporter: Philipp Schneider Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The find methods of the GridFS use the DBCursor to convert the results into a list.
The cursor should be closed in a final block.

See comment here:
https://github.com/mongodb/mongo-java-driver/pull/88/files#r2251287



 Comments   
Comment by Jeffrey Yemin [ 23/Jan/13 ]

Merged https://github.com/mongodb/mongo-java-driver/pull/88

Comment by auto [ 23/Jan/13 ]

Author:

{u'date': u'2013-01-23T02:22:26Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Merge pull request #88 from phil-schneider/JAVA-431-GridFS-Sorting

JAVA-431, JAVA-703: the find() method of GridFS should can be sorted. Cursor should be closed in a finally block.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8c6562a85421647f63e168bd4d62452e1e336ce7

Comment by auto [ 23/Jan/13 ]

Author:

{u'date': u'2012-11-28T15:17:59Z', u'email': u'github-commit@phil-schneider.de', u'name': u'Philipp'}

Message: JAVA-431 the find() method of GridFS should can be sorted
JAVA-703 GridFS List<GridFSDBFile> find( DBObject query ,...) should close cursor

Comment by Philipp Schneider [ 28/Nov/12 ]

This is also fixed in the pull request of the parent Jira issue

Generated at Thu Feb 08 08:52:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.