apache/incubator-spark — pull request #169 by kayousterhout (2013-11-14 07:08:39+00:00)
Title: Don't ignore spark.cores.max when using Mesos Coarse mode

totalCoresAcquired is decremented but never incremented, causing Spark to effectively ignore spark.cores.max in coarse grained Mesos mode.