You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Neelesh Srinivas Salian (JIRA)" <ji...@apache.org> on 2016/07/25 20:26:20 UTC

[jira] [Commented] (FLINK-4259) Unclosed FSDataOutputStream in FileCache#copy()

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

Neelesh Srinivas Salian commented on FLINK-4259:
------------------------------------------------

Hi [~yuzhihong@gmail.com], Can i provide a quick fix to this?

> Unclosed FSDataOutputStream in FileCache#copy()
> -----------------------------------------------
>
>                 Key: FLINK-4259
>                 URL: https://issues.apache.org/jira/browse/FLINK-4259
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>         try {
>           FSDataOutputStream lfsOutput = tFS.create(targetPath, false);
>           FSDataInputStream fsInput = sFS.open(sourcePath);
>           IOUtils.copyBytes(fsInput, lfsOutput);
> {code}
> The FSDataOutputStream lfsOutput should be closed upon exit.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)