[
https://issues.apache.org/jira/browse/FLINK-41747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ferenc Csaky closed FLINK-41747.
--------------------------------
Resolution: Fixed
[{{78aeda2}}|https://github.com/apache/flink/commit/78aeda2b289d73875251d9cfc6100f934ccac6cb]
in master
[{{e0e8a5f}}|https://github.com/apache/flink/commit/e0e8a5f99de3a146c7780a0429b68a69dc2be4c6]
in release-2.4
[{{b096b0e}}|https://github.com/apache/flink/commit/b096b0eb4cf7bfc55053c484caf053927f12fdcf]
in release-2.3
[{{4ab0aae}}|https://github.com/apache/flink/commit/4ab0aae1ebd0640ab7b378aceca6f5a814f2758a]
in release-2.2
[{{1293f9f}}|https://github.com/apache/flink/commit/1293f9f07b02af20cfcd77edb7a249433cd1ec68]
in release-1.20
> 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)