You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/12/07 18:55:59 UTC
[jira] [Updated] (FLINK-5283) InputStream should be closed in
RocksDBKeyedStateBackend#restoreOldSavepointKeyedState
[ https://issues.apache.org/jira/browse/FLINK-5283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Yu updated FLINK-5283:
--------------------------
Summary: InputStream should be closed in RocksDBKeyedStateBackend#restoreOldSavepointKeyedState (was: CheckpointStateOutputStream should be closed in finally block in SavepointV0Serializer#convertKeyedBackendState())
> InputStream should be closed in RocksDBKeyedStateBackend#restoreOldSavepointKeyedState
> --------------------------------------------------------------------------------------
>
> Key: FLINK-5283
> URL: https://issues.apache.org/jira/browse/FLINK-5283
> 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)