flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-6439) Unclosed InputStream in OperatorSnapshotUtil#readStateHandle()
Date Fri, 19 May 2017 15:58:04 GMT

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

ASF GitHub Bot commented on FLINK-6439:
---------------------------------------

Github user zentol commented on the issue:

    https://github.com/apache/flink/pull/3904
  
    merging.


> Unclosed InputStream in OperatorSnapshotUtil#readStateHandle()
> --------------------------------------------------------------
>
>                 Key: FLINK-6439
>                 URL: https://issues.apache.org/jira/browse/FLINK-6439
>             Project: Flink
>          Issue Type: Bug
>          Components: State Backends, Checkpointing
>            Reporter: Ted Yu
>            Assignee: Fang Yong
>            Priority: Minor
>
> {code}
>     FileInputStream in = new FileInputStream(path);
>     DataInputStream dis = new DataInputStream(in);
> {code}
> None of the in / dis is closed upon return from the method.
> In writeStateHandle(), OutputStream should be closed in finally block.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message