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 2014/09/25 13:00:41 UTC
[jira] [Commented] (SPARK-3651) Consolidate executor maps in
CoarseGrainedSchedulerBackend
[ https://issues.apache.org/jira/browse/SPARK-3651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14147619#comment-14147619 ]
Apache Spark commented on SPARK-3651:
-------------------------------------
User 'tigerquoll' has created a pull request for this issue:
https://github.com/apache/spark/pull/2533
> Consolidate executor maps in CoarseGrainedSchedulerBackend
> ----------------------------------------------------------
>
> Key: SPARK-3651
> URL: https://issues.apache.org/jira/browse/SPARK-3651
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 1.1.0
> Reporter: Andrew Or
> Assignee: Dale Richardson
>
> In CoarseGrainedSchedulerBackend, we have:
> {code}
> private val executorActor = new HashMap[String, ActorRef]
> private val executorAddress = new HashMap[String, Address]
> private val executorHost = new HashMap[String, String]
> private val freeCores = new HashMap[String, Int]
> private val totalCores = new HashMap[String, Int]
> {code}
> We only ever put / remove stuff from these maps together. It would simplify the code if we consolidate these all into one map as we have done in JobProgressListener in https://issues.apache.org/jira/browse/SPARK-2299.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org