Skip to content

Conversation

@JoshRosen
Copy link
Contributor

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

…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.

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49097 has finished for PR 10691 at commit f83365c.

  • 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 #49100 has finished for PR 10691 at commit f83365c.

  • 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 #49101 has finished for PR 10691 at commit 4c945ef.

  • 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 #49105 has finished for PR 10691 at commit a4bd6e8.

  • 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.6

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

Author: Josh Rosen <joshrosen@databricks.com>

Closes #10691 from JoshRosen/netty-exclude-16-backport.
@JoshRosen JoshRosen closed this Jan 11, 2016
@JoshRosen JoshRosen deleted the netty-exclude-16-backport branch January 11, 2016 08:37
@SparkQA
Copy link

SparkQA commented Jan 11, 2016

Test build #49090 has finished for PR 10691 at commit 7ed7e9d.

  • This patch fails from timeout after a configured wait of 250m.
  • This patch merges cleanly.
  • This patch adds no public classes.

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