[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org