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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.7.3
    • 2.8.0
    • GridFS

    Description

      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

      Attachments

        Activity

          People

            bryan.reinero Bryan Reinero
            alanwilliamson Alan Williamson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: