Github user skonto commented on a diff in the pull request: https://github.com/apache/spark/pull/19510#discussion_r145383146 --- Diff: resource-managers/mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala --- @@ -152,6 +152,23 @@ class MesosCoarseGrainedSchedulerBackendSuite extends SparkFunSuite assert(cpus == maxCores) } + test("mesos does not acquire more than spark.mem.max") { + setBackend(Map("spark.mem.max" -> "2g", + "spark.executor.memory" -> "1g", + "spark.executor.cores" -> "1")) + + val executorMemory = backend.executorMemory(sc) + --- End diff -- remove space
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org