Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/7657#discussion_r36375900
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -2286,6 +2286,17 @@ private[spark] object Utils extends Logging {
isInDirectory(parent, child.getParentFile)
}
+ /**
+ * Return whether dynamic allocation is enabled in the system conf
+ * Dynamic allocation and explicitly setting the number of executors are
inherently
+ * incompatible. In environments where dynamic allocation is turned on
by default,
+ * the latter should override the former (SPARK-9092).
+ */
+ def isDynamicAllocationEnabled(conf: SparkConf): Boolean = {
+ return conf.contains("spark.dynamicAllocation.enabled") &&
--- End diff --
no need to `return` 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]