flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-5282) CheckpointStateOutputStream should be closed in finally block in SavepointV0Serializer#convertKeyedBackendState()
Date Fri, 23 Dec 2016 13:28:58 GMT

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

Ted Yu commented on FLINK-5282:
-------------------------------

commit 8cda6a2260bbbd8e84349f0204d2980cfdd5a48a
Author: Stefan Richter <s.richter@data-artisans.com>
Date:   Wed Dec 7 21:25:29 2016 +0100

    [FLINK-5282] Fix closing streams on exception in SavepointV0Serializer

> CheckpointStateOutputStream should be closed in finally block in SavepointV0Serializer#convertKeyedBackendState()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-5282
>                 URL: https://issues.apache.org/jira/browse/FLINK-5282
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>       CheckpointStreamFactory.CheckpointStateOutputStream keyedStateOut =
>           checkpointStreamFactory.createCheckpointStateOutputStream(checkpointID, 0L);
>       final long offset = keyedStateOut.getPos();
> {code}
> If getPos() throws exception, keyedStateOut would be left unclosed.



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

Mime
View raw message