Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38579

Requesting Restful API can cause NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.2.1
    • 3.1.3, 3.3.0, 3.2.2
    • Web UI
    • None

    Description

      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.

      Attachments

        Activity

          People

            yangyimin Yimin Yang
            yangyimin Yimin Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: