You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/11/09 22:23:50 UTC

[GitHub] [spark] mridulm commented on pull request #34536: [SPARK-35011][CORE] Fix false active executor in UI that caused by BlockManager reregistration

mridulm commented on pull request #34536:
URL: https://github.com/apache/spark/pull/34536#issuecomment-964600485


   For any mutation of the `executorDataMap`, we always fire a corresponding event currently - no ?
   That is, scheduler state itself is always updated via `SparkListenerExecutorAdded`/`SparkListenerExecutorRemoved`.
   So why would we end up in a situation where we need `SparkListenerExecutorRemoved` to be fired again ?
   
   What I mean is, we have only two mutations of `executorDataMap`, namely:
   * In `RegisterExecutor` [here](https://github.com/apache/spark/blob/ebe7bb62176ac3c29b0c238e411a0dc989371c33/core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala#L266) and
   * In `removeExecutor` [here](https://github.com/apache/spark/blob/ebe7bb62176ac3c29b0c238e411a0dc989371c33/core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala#L417)
   
   In both of these cases, there is a companion event which is fired - so why do we need to fire an event if executor is missing ?


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

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



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