Github user mgummelt commented on a diff in the pull request:
https://github.com/apache/spark/pull/10924#discussion_r62077827
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/CoarseMesosSchedulerBackendSuite.scala
---
@@ -147,6 +147,19 @@ class CoarseMesosSchedulerBackendSuite extends
SparkFunSuite
verifyDeclinedOffer(driver, createOfferId("o1"), true)
}
+ test("mesos declines offers for a long time when reached
spark.cores.max") {
+ val maxCores = 3
+ setBackend(Map("spark.cores.max" -> maxCores.toString))
+
+ val executorMemory = backend.executorMemory(sc)
+ offerResources(List(
+ (executorMemory, maxCores + 1),
+ (executorMemory, maxCores + 1)))
+
+ verifyTaskLaunched("o1")
+ verifyDeclinedOffer(driver, createOfferId("o2"), true)
--- End diff --
This doesn't test the new config var. This would have passed before the
addition of this feature.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]