Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1430

Potential output stream handle leak when copyLarge files in streamResponse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14.0, 1.1.0
    • 1.2.0
    • Server
    • None

    Description

      When Knox streams a large response, like download a 2G file through webhdfs. The output stream handle will leak if there is an exception when copy the large file. This fix move outputStream.close() to the finally block.

      Attachments

        1. KNOX-1430.patch
          2 kB
          Guang Yang

        Activity

          People

            yg54123 Guang Yang
            yg54123 Guang Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: