srowen commented on a change in pull request #23758: [SPARK-17454][MESOS] Use
Mesos disk resources for executors.
URL: https://github.com/apache/spark/pull/23758#discussion_r264721873
##########
File path:
resource-managers/mesos/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerUtils.scala
##########
@@ -180,6 +180,10 @@ trait MesosSchedulerUtils extends Logging {
res.asScala.filter(_.getName == name).map(_.getScalar.getValue).sum
}
+ def resourceExists(res: JList[Resource], name: String): Boolean = {
Review comment:
If this is only used in test code, I'd move it there.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]