You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Sihua Zhou (JIRA)" <ji...@apache.org> on 2018/03/19 10:08:00 UTC
[jira] [Commented] (FLINK-9019) Unclosed closeableRegistry in
StreamTaskStateInitializerImpl#rawOperatorStateInputs
[ https://issues.apache.org/jira/browse/FLINK-9019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404580#comment-16404580 ]
Sihua Zhou commented on FLINK-9019:
-----------------------------------
Hi [~yuzhihong@gmail.com], why this should be a bug? I think {{closeableRegistry}} will be empty if {{rawOperatorState}} is null, so it seems that it doesn't need to be closed...
> Unclosed closeableRegistry in StreamTaskStateInitializerImpl#rawOperatorStateInputs
> -----------------------------------------------------------------------------------
>
> Key: FLINK-9019
> URL: https://issues.apache.org/jira/browse/FLINK-9019
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: vinoyang
> Priority: Minor
>
> {code}
> final CloseableRegistry closeableRegistry = new CloseableRegistry();
> ...
> if (rawOperatorState != null) {
> ...
> }
> }
> return CloseableIterable.empty();
> {code}
> If rawOperatorState is null, closeableRegistry would be left unclosed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)