Github user Astralidea commented on a diff in the pull request:
https://github.com/apache/spark/pull/10768#discussion_r49925683
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterScheduler.scala
---
@@ -519,6 +521,20 @@ private[spark] class MesosClusterScheduler(
val currentTime = new Date()
stateLock.synchronized {
+ var it = offers.iterator()
+ while (it.hasNext) {
+ val offer = it.next()
+ val offerAttributes = toAttributeMap(offer.getAttributesList)
+ val meetsConstraints =
matchesAttributeRequirements(driverOfferConstraints, offerAttributes)
+
+ if (!meetsConstraints) {
+ driver.declineOffer(offer.getId)
+ it.remove()
--- End diff --
oh, it's true. I modify code base in 1.5.2 previously, and test ok in
practice. in 1.6.0 version the code is change. I will revise it soon.thanks for
your review.
---
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]