Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This patch backports the Netty exclusion fixes from #10672 to branch-1.5.

…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.
@JoshRosen
Copy link
Contributor Author

This is NOT ready to merge; it looks like these exclusions have somehow catastrophically broken tests.

@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49089 timed out for PR 10690 at commit f4027aa after a configured wait of 175m.

@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49106 has finished for PR 10690 at commit 0225afa.

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

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49114 has finished for PR 10690 at commit c719fef.

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

@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49112 has finished for PR 10690 at commit c719fef.

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

asfgit pushed a commit that referenced this pull request Jan 11, 2016
…to branch-1.5

This patch backports the Netty exclusion fixes from #10672 to branch-1.5.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #10690 from JoshRosen/netty-exclude-15-backport.
@JoshRosen JoshRosen closed this Jan 11, 2016
@JoshRosen JoshRosen deleted the netty-exclude-15-backport branch January 11, 2016 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants