spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wuyi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-22847) Remove the duplicate code in AppStatusListener while assigning schedulingPool for stage
Date Wed, 20 Dec 2017 12:57:00 GMT
wuyi created SPARK-22847:
----------------------------

             Summary: Remove the duplicate code in AppStatusListener while assigning schedulingPool
 for stage
                 Key: SPARK-22847
                 URL: https://issues.apache.org/jira/browse/SPARK-22847
             Project: Spark
          Issue Type: Request
          Components: Spark Core
    Affects Versions: 2.2.1
            Reporter: wuyi
            Priority: Minor
             Fix For: 2.2.1


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

{code:java}
// 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)
{code}

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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message