[
https://issues.apache.org/jira/browse/FLINK-41747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-41747:
-----------------------------------
Labels: pull-request-available (was: )
> Fix possible NPE in MiniBatchStreamingJoinOperator#close
> --------------------------------------------------------
>
> Key: FLINK-41747
> URL: https://issues.apache.org/jira/browse/FLINK-41747
> Project: Flink
> Issue Type: Bug
> Reporter: Ferenc Csaky
> Assignee: Ferenc Csaky
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.2, 2.3.1, 2.4.0, 1.20.7
>
>
> {{MiniBatchStreamingJoinOperator#close()}} calls {{leftBuffer.clear()}} and
> {{rightBuffer.clear()}}, but {{open()}} is what creates the buffers. Flink
> closes operators even if it never opened them. If a task fails or is
> cancelled before the join's {{open()}} runs,
> {{RegularOperatorChain#closeAllOperators}} still calls {{close()}}, and
> {{close()}} throws an NPE. This happens in the task's post-failure cleanup,
> where {{Task#doRun}} treats any exception as fatal. So the TaskManager exits,
> along with every other task running on it.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)