[
https://issues.apache.org/jira/browse/FLINK-4259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395271#comment-15395271
]
ASF GitHub Bot commented on FLINK-4259:
---------------------------------------
Github user zentol commented on the issue:
https://github.com/apache/flink/pull/2299
I think it would be fine to merge it without a test; we merged plenty of
PR's like this without requiring a test.
The PythonPlanBinderTest failing is odd, but i would guess that it is
unrelated to this change. Nevertheless, does it get stuck every time you
execute it? And, of course, does it no longer fail without this commit?
> 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
> Assignee: Neelesh Srinivas Salian
> 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)