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

Initial null value of LiveStage.info can lead to NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2, 3.2.0
    • Spark Core
    • None

    Description

      The `AppStatusListener.getOrCreateStage` method creates a LiveStage object with the `info` field set to null and right after that set it to a specific StageInfo object. This can lead to a race condition when the `livestages` are read in between those calls. This could then lead to a null pointer exception in, for instance: `activeStages`.

      Attachments

        Activity

          People

            sgoos-db Sander Goos
            sgoos-db Sander Goos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: