-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-12734][BUILD] Backport Netty exclusion + Maven enforcer fixes to branch-1.5 #10690
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
Conversation
…event future bugs Netty classes are published under multiple artifacts with different names, so our build needs to exclude the `io.netty:netty` and `org.jboss.netty:netty` versions of the Netty artifact. However, our existing exclusions were incomplete, leading to situations where duplicate Netty classes would wind up on the classpath and cause compile errors (or worse). This patch fixes the exclusion issue by adding more exclusions and uses Maven Enforcer's [banned dependencies](https://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html) rule to prevent these classes from accidentally being reintroduced. I also updated `dev/test-dependencies.sh` to run `mvn validate` so that the enforcer rules can run as part of pull request builds. /cc rxin srowen pwendell. I'd like to backport at least the exclusion portion of this fix to `branch-1.5` in order to fix the documentation publishing job, which fails nondeterministically due to incompatible versions of Netty classes taking precedence on the compile-time classpath. Author: Josh Rosen <rosenville@gmail.com> Author: Josh Rosen <joshrosen@databricks.com> Closes apache#10672 from JoshRosen/enforce-netty-exclusions.
|
This is NOT ready to merge; it looks like these exclusions have somehow catastrophically broken tests. |
|
Test build #49089 timed out for PR 10690 at commit |
|
Test build #49106 has finished for PR 10690 at commit
|
|
Jenkins, retest this please. |
|
Test build #49114 has finished for PR 10690 at commit
|
|
Test build #49112 has finished for PR 10690 at commit
|
This patch backports the Netty exclusion fixes from #10672 to branch-1.5.