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

Memory leak in JobProgressListener due to `spark.ui.retainedJobs` not being used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • Spark Core
    • None

    Description

      In the JobProgressListener, we never actually remove jobs from the jobIdToData map. In fact, there's a somewhat embarrassing typo: retailed jobs:

        val retailedJobs = conf.getInt("spark.ui.retainedJobs", DEFAULT_RETAINED_JOBS)
      

      This was introduced by my patch for SPARK-2321: I should have added a test that set spark.ui.retainedJobs to some low threshold and checked that we only reported information for that many jobs; there was already a corresponding "test LRU eviction of stages" test that I should have just copied and modified.

      This only affects the unreleased 1.2.0 version.

      Attachments

        Activity

          People

            joshrosen Josh Rosen
            joshrosen Josh Rosen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: