Skip to content

Commit

Permalink
Merge pull request apache#44 in BDP/apache-spark from fix_min_reg_res…
Browse files Browse the repository at this point in the history
…ources_wait to netflix/2.1.1-unstable

* commit 'd68183c4087fb436a7e62d739804c1765f734184':
  Only check for minRegistered ratio if maxCoresOption is set
  • Loading branch information
dgshep committed Sep 19, 2018
2 parents cdb79f5 + d68183c commit 8522eea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private[spark] class MesosCoarseGrainedSchedulerBackend(
}

override def sufficientResourcesRegistered(): Boolean = {
totalCoreCount.get >= maxCoresOption.getOrElse(0) * minRegisteredRatio
maxCoresOption.isEmpty || totalCoreCount.get >= maxCores * minRegisteredRatio
}

override def disconnected(d: org.apache.mesos.SchedulerDriver) {}
Expand Down

0 comments on commit 8522eea

Please sign in to comment.