agrawaldevesh commented on a change in pull request #29468:
URL: https://github.com/apache/spark/pull/29468#discussion_r472389478



##########
File path: 
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala
##########
@@ -1062,25 +1062,36 @@ private[spark] class TaskSchedulerImpl(
   }
 
   def getExecutorsAliveOnHost(host: String): Option[Set[String]] = 
synchronized {
-    hostToExecutors.get(host).map(_.toSet)
+    
hostToExecutors.get(host).map(_.filterNot(isExecutorDecommissioned)).map(_.toSet)

Review comment:
       I don't think this method needs to be changed: It only seems to be used 
when the HDFS split is cached in memory by Hadoop. Perhaps we should restrict 
to changing only the methods in the `computeValidLocalityLevels` call path ?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to