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 2019/11/06 20:46:00 UTC

[jira] [Closed] (FLINK-13469) Resource used by StateMapSnapshot can not be released if snapshot fails

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

Stephan Ewen closed FLINK-13469.
--------------------------------

> Resource used by StateMapSnapshot can not be released if snapshot fails
> -----------------------------------------------------------------------
>
>                 Key: FLINK-13469
>                 URL: https://issues.apache.org/jira/browse/FLINK-13469
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>    Affects Versions: 1.9.0
>            Reporter: PengFei Li
>            Assignee: PengFei Li
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently, resource used by {{StateMapSnapshot}} is released in {{AbstractStateTableSnapshot#writeStateInKeyGroup}} as follows  
> {code:java}
> public void writeStateInKeyGroup(@Nonnull DataOutputView dov, int keyGroupId) throws IOException {
>     StateMapSnapshot<K, N, S, ? extends StateMap<K, N, S>> stateMapSnapshot = getStateMapSnapshotForKeyGroup(keyGroupId);
>     stateMapSnapshot.writeState(localKeySerializer, localNamespaceSerializer, localStateSerializer, dov, stateSnapshotTransformer);
>     stateMapSnapshot.release();
> }
> {code}
> If exception happens in {{StateMapSnapshot#writeState}}, resources used by this and left {{StateMapSnapshot}} s can not be released.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)