Skip to content

Commit

Permalink
Merge pull request #10 from mbautin/master-csd_fix_app_cores_granted
Browse files Browse the repository at this point in the history
Only reduce the number of cores once when removing an executor
  • Loading branch information
markhamstra committed Aug 1, 2013
2 parents ceaa47d + fa1918e commit 2b3a795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/scala/spark/deploy/master/ApplicationInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ private[spark] class ApplicationInfo(
}

def removeExecutor(exec: ExecutorInfo) {
executors -= exec.id
coresGranted -= exec.cores
if (executors.contains(exec.id)) {
executors -= exec.id
coresGranted -= exec.cores
}
}

def coresLeft: Int = desc.maxCores - coresGranted
Expand Down
Empty file added libpeerconnection.log
Empty file.

0 comments on commit 2b3a795

Please sign in to comment.