You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/14 01:45:11 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15004981#comment-15004981 ] 

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

GitHub user tedyu opened a pull request:

    https://github.com/apache/flink/pull/1353

    [FLINK-2913] Close of ObjectOutputStream should be enclosed in finall…

    …y block in FsStateBackend

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tedyu/flink master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1353.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1353
    
----
commit a00949b761efb0ceb6efb23a57095812c7ed2778
Author: tedyu <yu...@gmail.com>
Date:   2015-11-14T00:43:53Z

    [FLINK-2913] Close of ObjectOutputStream should be enclosed in finally block in FsStateBackend

----


> 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
>            Priority: Minor
>
> {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)