com.mongodb.gridfs.GridFSDBFile.writeTo( File ) does not close handle

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.8.0
    • Affects Version/s: 2.7.3
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When using the Java API to pull out a file from the GridFS the writeTo( File ) works, however the file handle is not closed down properly. You have to wait until the underlying JVM cleans it up, or exits. Major memory leak issue.

      Work around: use writeTo( OutputStream ) and manage the stream yourself

            Assignee:
            Bryan Reinero (Inactive)
            Reporter:
            Alan Williamson
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: