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

Fix NullPointerException in the test class ProcfsMetricsGetterSuite

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Spark Core, Tests
    • None

    Description

      When I use `ProcfsMetricsGetterSuite` testing, always throw out `java.lang.NullPointerException`. 

      I think there is a problem with locating `new ProcfsMetricsGetter`, which will lead to `SparkEnv` not being initialized in time. 

      This leads to `java.lang.NullPointerException` when the method is executed.

      Attachments

        Issue Links

          Activity

            People

              sev7e0 Jiaqi Li
              sev7e0 Jiaqi Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: