Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/4984#discussion_r33642003
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -1355,10 +1354,14 @@ class SparkContext(config: SparkConf) extends
Logging with ExecutorAllocationCli
/**
* Return whether dynamically adjusting the amount of resources
allocated to
- * this application is supported. This is currently only available for
YARN.
+ * this application is supported. This is currently only available for
YARN
+ * and Mesos coarse-grained mode.
*/
- private[spark] def supportDynamicAllocation =
- master.contains("yarn") ||
_conf.getBoolean("spark.dynamicAllocation.testing", false)
+ private[spark] def supportDynamicAllocation = {
--- End diff --
not your code, but can you add return type `Boolean` here
---
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]