-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc-netty-shaded #22892
Conversation
etcd tests break with Netty 4.1.111.Final. There's some compatibility issue. |
It seems that grpc-netty dependency will have to be excluded and replaced by grpc-netty-shaded since grpc is compatible only with specific Netty versions. |
Unfortunately jetcd-core isn't compatible with grpc-netty-shaded. There are conflicts with |
53c8760
to
faebbf2
Compare
I found a reasonable solution by shading jetcd-core in a way where vertx is relocated and included, but grpc is switched to use grpc-netty-shaded instead of grpc-netty. stream-storage-java-client supports switching to use grpc-netty-shaded without making changes to the module. |
@lhotari There are quite a few merge conflict everywhere (except for 3.3). I'm not sure how difficult it would be to backport. |
I'll handle the backporting. I think it's doable. |
- version in jetcd-core-shaded/pom.xml needs to match project version
…use grpc-netty-shaded (apache#22892)" This reverts commit 75d7e55.
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
@lhotari Hi, I'm trying to deploy Pulsar v3.3.1 on K8s with etcd as metastore using the official Docker image, got an exception when executing
It seems to me that this PR is related, any idea how to fix this? Thanks. |
I tried 3.2.4, 3.0.6 and 3.0.5, only 3.0.5 works, and I noticed this commit isnt't on 3.3.1, so I guess I'll wait and try 4.0 when it's released. |
@inetfuture Please report a separate GH issue with steps to reproduce. That will be helpful in addressing this problem. |
Fixes #22601
Fixes #21892
Fixes #19460
Motivation
Netty 4.1.111.Final contains important fixes:
These address Broker stability when TLS with Bookkeeper V2 protocol is used between Broker and Bookies.
This will also allow removing the extra buffer copies that have been in place in Pulsar broker and Pulsar client when TLS is enabled.
pulsar/pulsar-common/src/main/java/org/apache/pulsar/common/protocol/ByteBufPair.java
Lines 138 to 157 in 266243c
This will be removed in a separate PR.
Modifications
Documentation
doc
doc-required
doc-not-needed
doc-complete