Ferenc Csaky created FLINK-41747:
------------------------------------
Summary: 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
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)