Skip to content

[SPARK-41093][BUILD] Remove netty-tcnative-classes from Spark dependencyList - #38596

Closed
pan3793 wants to merge 2 commits into
apache:masterfrom
pan3793:SPARK-41093
Closed

pan3793 wants to merge 2 commits into
apache:masterfrom
pan3793:SPARK-41093

Conversation

@pan3793

@pan3793 pan3793 commented Nov 10, 2022 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Remove netty-tcnative-classes from Spark dependencyList.

Why are the changes needed?

netty/netty#12146 explained that netty-tcnative-classes should be optional, otherwise will cause netty/netty#12101

It also not part of previous netty-all(fat jar)

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI pass.

Comment thread pom.xml Outdated

@pan3793 pan3793 Nov 10, 2022 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Netty support openSSL and JDK SSL, to enable openSSL support, netty-tcnative-classes and platform native libs should be existed in classpath.

Single netty-tcnative-classes will cause netty/netty#12101

And previous netty-all(fat jar) does not include tcnative as well.

@LuciferYang LuciferYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, happy to remove an unnecessary dependency if really unused

@HyukjinKwon HyukjinKwon changed the title [SPARK-41093][DEPS] Remove netty-tcnative-classes from Spark dependencyList [SPARK-41093][BUILD] Remove netty-tcnative-classes from Spark dependencyList Nov 10, 2022
@pan3793

pan3793 commented Nov 10, 2022

Copy link
Copy Markdown
Member Author

cc @srowen

@srowen

srowen commented Nov 10, 2022

Copy link
Copy Markdown
Member

Sounds ok. How far back should this backport?

@pan3793

pan3793 commented Nov 11, 2022

Copy link
Copy Markdown
Member Author

This patch only suitable to master.

  • branch-3.2 and earlier use the fat netty-all, no issue;
  • branch-3.3 depends on netty 4.1.74, which claims netty-tcnative-classes as compile scope, we need to 1) explicitly exclude netty-tcnative-classes from netty, 2) or upgrade netty and apply this patch, 3) or leave it, since it's not a big deal;
  • master depends on netty 4.1.75+, which has the issue described by this PR;

@srowen

srowen commented Nov 11, 2022

Copy link
Copy Markdown
Member

Merged to master

@srowen srowen closed this in 24adac3 Nov 11, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…ncyList

### What changes were proposed in this pull request?

Remove `netty-tcnative-classes` from Spark dependencyList.

### Why are the changes needed?

netty/netty#12146 explained that `netty-tcnative-classes` should be optional, otherwise will cause netty/netty#12101

It also not part of previous `netty-all`(fat jar)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI pass.

Closes apache#38596 from pan3793/SPARK-41093.

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Sean Owen <[email protected]>
@attilapiros

Copy link
Copy Markdown
Contributor

@pan3793 On java8 is not this change has some performance impact? Based on this comment:
grpc/grpc-java#6997 (comment)

Since we do some of our own detection, we should make sure it works with these more recent Java 8 versions. Even though Java 8 has very poor AES GCM performance, if it is an additional option it can help users on nicher platforms why may not need high throughput.

@pan3793

pan3793 commented Jun 8, 2023

Copy link
Copy Markdown
Member Author

@attilapiros Sorry, I don't have experience with SSL-enabled Spark workload.

I don't think this PR broke the native SSL support, because the single netty-tcnative-classes jar without corresponding native artifacts does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants