Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-7996] Deprecate the developer api SparkEnv.actorSystem #6731

Closed
wants to merge 3 commits into from

Conversation

ilganeli
Copy link

@ilganeli ilganeli commented Jun 9, 2015

Changed SparkEnv.actorSystem to be a function such that we can use the deprecated flag with it and added a deprecated message.

@@ -75,7 +75,8 @@ class SparkEnv (
val conf: SparkConf) extends Logging {

// TODO Remove actorSystem
val actorSystem = rpcEnv.asInstanceOf[AkkaRpcEnv].actorSystem
@deprecated("Actor system is no longer supported")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a version?

@SparkQA
Copy link

SparkQA commented Jun 9, 2015

Test build #34537 has finished for PR 6731 at commit 9610b08.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34538 has finished for PR 6731 at commit 9ed89e7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -75,7 +77,8 @@ class SparkEnv (
val conf: SparkConf) extends Logging {

// TODO Remove actorSystem
val actorSystem = rpcEnv.asInstanceOf[AkkaRpcEnv].actorSystem
@deprecated("Actor system is no longer supported as of 1.4")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the idiom for scala deprecation is

@deprecated("Actor system in SparkEnv is no longer supported", "1.4.0")

@zsxwing
Copy link
Member

zsxwing commented Jun 10, 2015

Changed SparkEnv.actorSystem to be a function such that we can use the deprecated flag with it and added a deprecated message.

I can add @deprecated flat to a val. See
screen shot 2015-06-10 at 9 10 23 pm

@SparkQA
Copy link

SparkQA commented Jun 10, 2015

Test build #34614 has finished for PR 6731 at commit be43817.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jun 10, 2015

Thanks - merging this in.

@asfgit asfgit closed this in 2b550a5 Jun 10, 2015
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
Changed ```SparkEnv.actorSystem``` to be a function such that we can use the deprecated flag with it and added a deprecated message.

Author: Ilya Ganelin <ilya.ganelin@capitalone.com>

Closes apache#6731 from ilganeli/SPARK-7996 and squashes the following commits:

be43817 [Ilya Ganelin] Restored to val
9ed89e7 [Ilya Ganelin] Added a version info for deprecation
9610b08 [Ilya Ganelin] Converted actorSystem to function and added deprecated flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants