You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2015/11/19 17:18:11 UTC

[jira] [Resolved] (FLINK-2913) Close of ObjectOutputStream should be enclosed in finally block in FsStateBackend

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

Stephan Ewen resolved FLINK-2913.
---------------------------------
       Resolution: Fixed
         Assignee: Ted Yu
    Fix Version/s: 1.0.0

Fixed via ff52d289113560273830421eceef82028d8bc99c

Thank you for the contribution!

> Close of ObjectOutputStream should be enclosed in finally block in FsStateBackend
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-2913
>                 URL: https://issues.apache.org/jira/browse/FLINK-2913
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> {code}
>       ObjectOutputStream os = new ObjectOutputStream(outStream);
>       os.writeObject(state);
>       os.close();
> {code}
> If IOException is thrown out of writeObject(), the close() call would be skipped.



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