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] [Updated] (FLINK-5283) InputStream should be closed in RocksDBKeyedStateBackend#restoreOldSavepointKeyedState
Date Wed, 07 Dec 2016 18:57:59 GMT

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

Ted Yu updated FLINK-5283:
--------------------------
    Description: 
{code}
   HashMap<String, RocksDBStateBackend.FinalFullyAsyncSnapshot> namedStates =
        InstantiationUtil.deserializeObject(restoreState.iterator().next().openInputStream(),
userCodeClassLoader);
{code}
The InputStream returned by openInputStream() should be closed upon return from the method.

Similar problem exists in HeapKeyedStateBackend#restoreOldSavepointKeyedState

  was:
{code}
   HashMap<String, RocksDBStateBackend.FinalFullyAsyncSnapshot> namedStates =
        InstantiationUtil.deserializeObject(restoreState.iterator().next().openInputStream(),
userCodeClassLoader);
{code}
The InputStream returned by openInputStream() should be closed upon return from the method.

Similar problem exists in HeapKeyedStateBackend


> 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}
>    HashMap<String, RocksDBStateBackend.FinalFullyAsyncSnapshot> namedStates =
>         InstantiationUtil.deserializeObject(restoreState.iterator().next().openInputStream(),
userCodeClassLoader);
> {code}
> The InputStream returned by openInputStream() should be closed upon return from the method.
> Similar problem exists in HeapKeyedStateBackend#restoreOldSavepointKeyedState



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

Mime
View raw message