You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by andrewor14 <gi...@git.apache.org> on 2015/02/27 00:43:06 UTC

[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

GitHub user andrewor14 opened a pull request:

    https://github.com/apache/spark/pull/4797

    [SPARK-6046] Privatize SparkConf.translateConfKey

    The warning of deprecated configs is actually done when the configs are set, not when they are get. As a result we don't need to explicitly call `translateConfKey` outside of `SparkConf` just to print the warning again in vain.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewor14/spark warn-deprecated-config

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4797.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4797
    
----
commit 8fb43e684497034627dfd3b9da3aa9f7be89b393
Author: Andrew Or <an...@databricks.com>
Date:   2015-02-26T23:38:14Z

    Privatize SparkConf.translateConfKey

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the pull request:

    https://github.com/apache/spark/pull/4797#issuecomment-76300893
  
    LGTM.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/4797


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4797#issuecomment-76311385
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/28026/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4797#issuecomment-76300752
  
      [Test build #28026 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28026/consoleFull) for   PR 4797 at commit [`8fb43e6`](https://github.com/apache/spark/commit/8fb43e684497034627dfd3b9da3aa9f7be89b393).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/4797#issuecomment-76346780
  
    Merging into master, thanks.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4797#issuecomment-76311379
  
      [Test build #28026 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28026/consoleFull) for   PR 4797 at commit [`8fb43e6`](https://github.com/apache/spark/commit/8fb43e684497034627dfd3b9da3aa9f7be89b393).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4797#discussion_r25481979
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
    @@ -49,8 +49,8 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
     
       // Interval between each check for event log updates
       private val UPDATE_INTERVAL_MS = conf.getOption("spark.history.fs.update.interval.seconds")
    -    .orElse(conf.getOption(SparkConf.translateConfKey("spark.history.fs.updateInterval", true)))
    -    .orElse(conf.getOption(SparkConf.translateConfKey("spark.history.updateInterval", true)))
    +    .orElse(conf.getOption("spark.history.fs.updateInterval"))
    +    .orElse(conf.getOption("spark.history.updateInterval"))
    --- End diff --
    
    Yeah, with the existing code that is the case. However, there's an issue with translating the configs on `conf.set` that I outline in #4799. Once we fix that we'll still need the `orElse`s here, but let's move the discussion to that PR instead.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-6046] Privatize SparkConf.translateConf...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4797#discussion_r25478499
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala ---
    @@ -49,8 +49,8 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
     
       // Interval between each check for event log updates
       private val UPDATE_INTERVAL_MS = conf.getOption("spark.history.fs.update.interval.seconds")
    -    .orElse(conf.getOption(SparkConf.translateConfKey("spark.history.fs.updateInterval", true)))
    -    .orElse(conf.getOption(SparkConf.translateConfKey("spark.history.updateInterval", true)))
    +    .orElse(conf.getOption("spark.history.fs.updateInterval"))
    +    .orElse(conf.getOption("spark.history.updateInterval"))
    --- End diff --
    
    BTW, it's not necessary to call  `get` with the old names here. The code in SparkConf will print the deprecation warning when the old option names are set, and internally `translateKey` will always ensure the new option name is used. So the two `orElse` here are basically reduntant.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org