Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/3233#discussion_r22940429
--- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
@@ -373,4 +388,62 @@ private[spark] object SparkConf {
* Return whether the given config is a Spark port config.
*/
def isSparkPortConf(name: String): Boolean = name.startsWith("spark.")
&& name.endsWith(".port")
+
+ /**
+ * Returns the configuration key to use for the given user-provided key,
translating
+ * deprecated keys.
+ *
+ * @param userKey Configuration key from the user / caller.
+ * @param warn Whether to print a warning if the key is depreated.
Warnings will be printed
+ * only once for each key.
+ */
+ def getConfKey(userKey: String, warn: Boolean = false): String = {
--- End diff --
warn flag isn't being used
---
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]