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-8949 - Print warnings when using preferred locations feature #7874

Closed
wants to merge 1 commit into from

Conversation

darkjh
Copy link
Contributor

@darkjh darkjh commented Aug 2, 2015

Add warnings according to SPARK-8949 in SparkContext

  • warnings in scaladoc
  • log warnings when preferred locations feature is used through SparkContext's constructor

However I didn't found any documentation reference of this feature. Please direct me if you know any reference to this feature.

@@ -121,6 +122,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
@DeveloperApi
def this(config: SparkConf, preferredNodeLocationData: Map[String, Set[SplitInfo]]) = {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably mark this constructor as @Deprecated as well.

@darkjh
Copy link
Contributor Author

darkjh commented Aug 3, 2015

@JoshRosen @sryza Done.

@sryza
Copy link
Contributor

sryza commented Aug 4, 2015

jenkins, test this please

@JoshRosen
Copy link
Contributor

Jenkins, this is ok to test.

@darkjh
Copy link
Contributor Author

darkjh commented Aug 11, 2015

Should I rebase this to the master to solve the build fail?

@JoshRosen
Copy link
Contributor

The tests are in an extraordinary flaky state now, so it's unlikely to be caused by your patch, especially since Jenkins tests merge commits. Let's just retest and see if the problem re-occurs.

@JoshRosen
Copy link
Contributor

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 11, 2015

Test build #40527 has finished for PR 7874 at commit 94021b8.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -118,9 +118,11 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
* Can be generated using [[org.apache.spark.scheduler.InputFormatInfo.computePreferredLocations]]
* from a list of input files or InputFormats for the application.
*/
@Deprecated("Passing in preferred locations has no effect at all, see SPARK-8949")
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be

@deprecated(("Passing in preferred locations has no effect at all, see SPARK-8949", "1.5.0")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -118,9 +118,11 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
* Can be generated using [[org.apache.spark.scheduler.InputFormatInfo.computePreferredLocations]]
* from a list of input files or InputFormats for the application.
*/
@Deprecated("Passing in preferred locations has no effect at all, see SPARK-8949", "1.5.0")
Copy link
Member

Choose a reason for hiding this comment

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

This is the java.lang annotation. Does it work with Scala? I thought we used @deprecated for this -- better for consistency even if both work

Copy link
Member

Choose a reason for hiding this comment

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

Confirmed in https://issues.apache.org/jira/browse/SPARK-10099 @darkjh do you mind updating?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @srowen I wasn't aware of the different decorators. It's done now.

@SparkQA
Copy link

SparkQA commented Aug 19, 2015

Test build #1667 has finished for PR 7874 at commit 5a7b761.

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

asfgit pushed a commit that referenced this pull request Aug 19, 2015
Add warnings according to SPARK-8949 in `SparkContext`
  - warnings in scaladoc
  - log warnings when preferred locations feature is used through `SparkContext`'s constructor

However I didn't found any documentation reference of this feature. Please direct me if you know any reference to this feature.

Author: Han JU <ju.han.felix@gmail.com>

Closes #7874 from darkjh/SPARK-8949.

(cherry picked from commit 3d16a54)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@SparkQA
Copy link

SparkQA commented Aug 19, 2015

Test build #41231 timed out for PR 7874 at commit 764a7ba after a configured wait of 175m.

@asfgit asfgit closed this in 3d16a54 Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants