You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "wuyi (JIRA)" <ji...@apache.org> on 2017/12/20 12:57:00 UTC
[jira] [Created] (SPARK-22847) Remove the duplicate code in
AppStatusListener while assigning schedulingPool for stage
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