You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/10/05 13:02:00 UTC

[jira] [Commented] (KNOX-1430) Potential output stream handle leak when copyLarge files in streamResponse

    [ https://issues.apache.org/jira/browse/KNOX-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16639797#comment-16639797 ] 

Kevin Risden commented on KNOX-1430:
------------------------------------

[~lmccay] - Can this Jira be closed? Looks like you committed the change to master.

> Potential output stream handle leak when copyLarge files in streamResponse
> --------------------------------------------------------------------------
>
>                 Key: KNOX-1430
>                 URL: https://issues.apache.org/jira/browse/KNOX-1430
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.14.0, 1.1.0
>            Reporter: Guang Yang
>            Assignee: Guang Yang
>            Priority: Major
>             Fix For: 1.2.0
>
>         Attachments: KNOX-1430.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)