You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yimin Yang (Jira)" <ji...@apache.org> on 2022/03/17 02:39:00 UTC

[jira] [Created] (SPARK-38580) Requesting Restful API can cause NullPointerException

Yimin Yang created SPARK-38580:
----------------------------------

             Summary: Requesting Restful API can cause NullPointerException
                 Key: SPARK-38580
                 URL: https://issues.apache.org/jira/browse/SPARK-38580
             Project: Spark
          Issue Type: Bug
          Components: Web UI
    Affects Versions: 3.2.1, 3.2.0, 3.1.2, 3.1.1, 3.1.0
            Reporter: Yimin Yang


When requesting Restful API  \{baseURL}/api/v1/applications/$appId/sql/$executionId which is introduced by this PR [https://github.com/apache/spark/pull/28208,] it can cause NullPointerException. The root cause is, when calling method doUpdate() of `LiveExecutionData`, `metricsValues` can be null. Then, when statement `printableMetrics(graph.allNodes, exec.metricValues)` is executed, it will throw  NullPointerException.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org