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-13626] [core] Revert change to SparkConf's constructor. #11734

Closed
wants to merge 1 commit into from

Conversation

vanzin
Copy link
Contributor

@vanzin vanzin commented Mar 15, 2016

It shouldn't be private.

@vanzin
Copy link
Contributor Author

vanzin commented Mar 15, 2016

BTW it's a little worrying that MiMA didn't catch this in the original change.

@rxin
Copy link
Contributor

rxin commented Mar 15, 2016

LGtm

@SparkQA
Copy link

SparkQA commented Mar 15, 2016

Test build #53205 has finished for PR 11734 at commit 7b9a92b.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging

@vanzin
Copy link
Contributor Author

vanzin commented Mar 15, 2016

unrelated test failure. merging to master.

@asfgit asfgit closed this in 41eaabf Mar 15, 2016
@dongjoon-hyun
Copy link
Member

Oh, @vanzin .
Sorry for writing comments at the closed PR.

I've read your concern and investigated some. The root cause was GenerateMIMAIgnore.scala makes .generated-mima-class-excludes from the current code having private class. As a result, it ignores the case : visibility goes from public into private. Do you think I need to make a Jira issue for this?

@vanzin
Copy link
Contributor Author

vanzin commented Mar 16, 2016

Do you think should I make a Jira issue for this?

Please do; this means that APIs that are being changed from public to private might not trigger MiMA failures, when they should. Maybe @JoshRosen could also chime in.

@dongjoon-hyun
Copy link
Member

Oh, thank you for fast response. I'll do right now.

@JoshRosen
Copy link
Contributor

I think this problem relates to the fact that the SparkConf companion object is private[spark] and our exclusion generator inappropriately handles cases where classes and their companion objects have different visibility.

I have a good idea of how to fix this, so I'll open a PR in a little bit to address it.

@vanzin vanzin deleted the SPARK-13626-api branch March 16, 2016 20:46
@dongjoon-hyun
Copy link
Member

Oh, that's great, @JoshRosen .

I made a Jira issue, but could you change that appropriately with yours?

https://issues.apache.org/jira/browse/SPARK-13948

@JoshRosen
Copy link
Contributor

I don't think that MiMa is necessarily capable of detecting this problem for things which are evolved to become private[spark] because Scala package-private methods become public from Java's point of view and MiMa uses a Java-centric type of binary compatibility; see lightbend-labs/mima#34. My understanding is that private[spark] is a source compatibility issue from Scala's POV and thus is out-of-scope for what MiMa currently detects.

However, I think it's true that we will fail to detect a class which becomes straight-up private, so we should definitely fix that.

roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
It shouldn't be private.

Author: Marcelo Vanzin <vanzin@cloudera.com>

Closes apache#11734 from vanzin/SPARK-13626-api.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants