You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/12/20 13:10:00 UTC

[jira] [Assigned] (SPARK-22847) Remove the duplicate code in AppStatusListener while assigning schedulingPool for stage

     [ https://issues.apache.org/jira/browse/SPARK-22847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-22847:
------------------------------------

    Assignee:     (was: Apache Spark)

> 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
>              Labels: newbie
>             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