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

Fix FsHistoryProvider race condition between update and clean app data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0, 3.2.2
    • Web UI
    • None
    • CentOS Linux release 7.7.1908

      openjdk version "1.8.0_262"
      OpenJDK Runtime Environment (build 1.8.0_262-b10)
      OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

    Description

      After SPARK-29043, FsHistoryProvider will list the log info without waiting all `mergeApplicationListing` task finished.

      However, the method `cleanAppData` for stale data is not thread safe and it could lead to a scenario when `cleanAppData` delete the entry of 

      ApplicationInfoWrapper for an application right after it has been updated by `mergeApplicationListing`.

      So there will be cases when the HS Web UI displays `Application not found` for applications whose logs does exist.

      Attachments

        Issue Links

          Activity

            People

              tanvu Vu Tan
              tanvu Vu Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: