Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-544

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

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

      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 Bryan Reinero
            Reporter:
            alanwilliamson Alan Williamson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: