[
https://issues.apache.org/jira/browse/SPARK-49478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davin Tjong updated SPARK-49478:
--------------------------------
Description:
On task end, `TaskMetrics` may be `null`, as in the case of task failure (see
[here|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/SparkListener.scala#L83]).
We should not throw an NPE in this case and instead handle gracefully.
> Handle null metrics in ConnectProgressExecutionListenerSuite
> ------------------------------------------------------------
>
> Key: SPARK-49478
> URL: https://issues.apache.org/jira/browse/SPARK-49478
> Project: Spark
> Issue Type: Bug
> Components: Connect
> Affects Versions: 3.5.0
> Reporter: Davin Tjong
> Priority: Major
>
> On task end, `TaskMetrics` may be `null`, as in the case of task failure (see
> [here|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/scheduler/SparkListener.scala#L83]).
> We should not throw an NPE in this case and instead handle gracefully.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]