You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2016/02/03 15:54:39 UTC

[jira] [Resolved] (FLINK-3325) Unclosed InputStream in CEPPatternOperator#restoreState()

     [ https://issues.apache.org/jira/browse/FLINK-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Till Rohrmann resolved FLINK-3325.
----------------------------------
    Resolution: Fixed

Fixed via 077dd55885fc91b7dd4c96c07ee6853a97db1a49

> Unclosed InputStream in CEPPatternOperator#restoreState()
> ---------------------------------------------------------
>
>                 Key: FLINK-3325
>                 URL: https://issues.apache.org/jira/browse/FLINK-3325
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Till Rohrmann
>            Priority: Minor
>
> Here is related code:
> {code}
>     final InputStream is = stream.getState(getUserCodeClassloader());
>     final ObjectInputStream ois = new ObjectInputStream(is);
>     final DataInputViewStreamWrapper div = new DataInputViewStreamWrapper(is);
>     nfa = (NFA<IN>)ois.readObject();
> {code}
> Neither is nor ois is closed upon return from the method



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