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

Remove the duplicate code in AppStatusListener while assigning schedulingPool for stage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.2.1
    • 2.3.0
    • Spark Core
    • Patch

    Description

      In AppStatusListener's onStageSubmitted(event: SparkListenerStageSubmitted) method, there are duplicate code:

      // schedulingPool was assigned twice with the same code
      stage.schedulingPool = Option(event.properties).flatMap { p =>
            Option(p.getProperty("spark.scheduler.pool"))
          }.getOrElse(SparkUI.DEFAULT_POOL_NAME)
      

      But, it does not make any sense to do this and there are no comment to explain for this.

      Attachments

        Activity

          People

            Ngone51 wuyi
            Ngone51 wuyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: