Skip to content

Commit

Permalink
Add comments about the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GraceH committed Jul 20, 2015
1 parent 30a9ad0 commit b5546ce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp
// Make fake resource offers on all executors
private def makeOffers() {
launchTasks(scheduler.resourceOffers(executorDataMap
// Filter out executors under killing
.filterKeys(!executorsPendingToRemove.contains(_))
.map { case (id, executorData) =>
new WorkerOffer(id, executorData.executorHost, executorData.freeCores)
Expand All @@ -183,6 +184,7 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp

// Make fake resource offers on just one executor
private def makeOffers(executorId: String) {
// Filter out executors under killing
if (!executorsPendingToRemove.contains(executorId)) {
val executorData = executorDataMap(executorId)
launchTasks(scheduler.resourceOffers(
Expand Down

0 comments on commit b5546ce

Please sign in to comment.