You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Or (JIRA)" <ji...@apache.org> on 2014/09/23 01:50:33 UTC

[jira] [Created] (SPARK-3651) Consolidate executor maps in CoarseGrainedSchedulerBackend

Andrew Or created SPARK-3651:
--------------------------------

             Summary: 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


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