-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-13928] Move org.apache.spark.Logging into org.apache.spark.internal.Logging #11764
Conversation
What does this change accomplish? I wasn't clear from the JIRA |
Test build #53322 has finished for PR 11764 at commit
|
We made the |
Logging is an internal class though ... it's not something anyone should use. For 2.x that can be enforced more strongly. I don't think this is harmful as a change but seems unnecessary. |
Test build #53323 has finished for PR 11764 at commit
|
Test build #53325 has finished for PR 11764 at commit
|
@srowen it was only documented as private but not actually set as private in 1.x. As a result, a lot of user applications are unfortunately using it. |
Test build #53326 has finished for PR 11764 at commit
|
I think the following exclude should fix things cleanly: diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index 2a4a874..ce982d2 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -322,6 +322,13 @@ object MimaExcludes {
) ++ Seq(
// [SPARK-13686][MLLIB][STREAMING] Add a constructor parameter `reqParam` to (Streaming)LinearRegressionWithSGD
ProblemFilters.exclude[MissingMethodProblem]("org.apache.spark.mllib.regression.LinearRegressionWithSGD.this")
+ ) ++ Seq(
+ // [SPARK-13928] Move org.apache.spark.Logging into org.apache.spark.internal.Logging
+ (problem: Problem) => problem match {
+ case MissingTypesProblem(_, missing)
+ if missing.map(_.fullName).sameElements(Seq("org.apache.spark.Logging")) => false
+ case _ => true
+ }
)
case v if v.startsWith("1.6") =>
Seq( |
@JoshRosen thanks a lot! It's very helpful. |
hi @rxin , this PR changes too many files and can't be reviewed on github. You can fetch my branch and run |
Test build #53381 has finished for PR 11764 at commit
|
Test build #53383 has finished for PR 11764 at commit
|
The log says: |
|
Sorry I missed it as this message is so far away from the final one... @JoshRosen thanks again! |
Test build #53385 has finished for PR 11764 at commit
|
Test build #53380 has finished for PR 11764 at commit
|
LGTM - merge it as soon as you get tests to pass. |
retest this please |
Test build #53392 has finished for PR 11764 at commit
|
Test build #53391 has finished for PR 11764 at commit
|
Test build #53396 has finished for PR 11764 at commit
|
Test build #53403 has finished for PR 11764 at commit
|
merging to master |
…ernal.Logging ## What changes were proposed in this pull request? Logging was made private in Spark 2.0. If we move it, then users would be able to create a Logging trait themselves to avoid changing their own code. ## How was this patch tested? existing tests. Author: Wenchen Fan <wenchen@databricks.com> Closes apache#11764 from cloud-fan/logger.
What changes were proposed in this pull request?
Logging was made private in Spark 2.0. If we move it, then users would be able to create a Logging trait themselves to avoid changing their own code.
How was this patch tested?
existing tests.