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

Initial null value of LiveStage.info can lead to NPE

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2, 3.2.0
    • Component/s: Spark Core
    • Labels:
      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

            • Assignee:
              sgoos-db Sander Goos
              Reporter:
              sgoos-db Sander Goos

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment