GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc-netty-shaded by lhotari · Pull Request #22892 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Jun 11, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #22601
Fixes #21892
Fixes #19460

Motivation

Netty 4.1.111.Final contains important fixes:

  • Optimize wrap buffer cumulation in SslHandler and don't mutate input buffers  netty/netty#14086
  • Duplicate of slice should have the same capacity as the original slice so that it's not writable netty/netty#14093

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

public static class CopyingEncoder extends ChannelOutboundHandlerAdapter {
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
if (msg instanceof ByteBufPair) {
ByteBufPair b = (ByteBufPair) msg;
// Some handlers in the pipeline will modify the bytebufs passed in to them (i.e. SslHandler).
// For these handlers, we need to pass a copy of the buffers as the source buffers may be cached
// for multiple requests.
try {
ctx.write(b.getFirst().copy(), ctx.voidPromise());
ctx.write(b.getSecond().copy(), promise);
} finally {
ReferenceCountUtil.safeRelease(b);
}
} else {
ctx.write(msg, promise);
}
}
}

This will be removed in a separate PR.

Modifications

  • Upgrade Netty to 4.1.111.Final version

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari lhotari added area/dependency Pull requests that update a dependency file ready-to-test release/3.1.5 release/3.3.1 release/3.0.6 release/3.2.4 labels Jun 11, 2024
@lhotari lhotari added this to the 3.4.0 milestone Jun 11, 2024
@lhotari
lhotari requested review from Technoboy-, codelipenghui, hangc0276, merlimat and poorbarcode June 11, 2024 17:19
@lhotari lhotari self-assigned this Jun 11, 2024
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 11, 2024
@lhotari lhotari mentioned this pull request Jun 11, 2024
[fix][broker] Fix data corruption issues when TLS is enabled and optimize TLS between Pulsar client and brokers #22810
Closed
1 of 4 tasks
Technoboy-
Technoboy- approved these changes Jun 12, 2024
View reviewed changes
@lhotari

lhotari commented Jun 12, 2024

Copy link
Copy Markdown
Member Author

etcd tests break with Netty 4.1.111.Final. There's some compatibility issue.
I also tried upgrading jetcd to 0.8.2 and grpc to 1.64.0, but that didn't help.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari mentioned this pull request Jun 12, 2024
Upgrade to Netty 4.1.111.Final and switch to use grpc-netty-shaded apache/bookkeeper#4426
Merged
@lhotari

lhotari commented Jun 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari

lhotari commented Jun 12, 2024

Copy link
Copy Markdown
Member Author

Unfortunately jetcd-core isn't compatible with grpc-netty-shaded. There are conflicts with io.grpc.netty.GrpcSslContexts/io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts and io.netty.handler.ssl.SslContext/io.grpc.netty.shaded.io.netty.handler.ssl.SslContext classes. The only solution seems to be to do custom shading for jetcd-core and jetcd-test.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dao-jun
dao-jun approved these changes Jun 12, 2024
View reviewed changes
lhotari added 3 commits June 12, 2024 16:03
@lhotari
[improve][misc] Upgrade to Netty 4.1.111.Final
d6683ca
@lhotari
Add jetcd-core-shaded module which uses grpc-netty-shaded
b11f402
@lhotari
Use grpc-netty-shaded for stream-storage-java-client
faebbf2
@lhotari
lhotari force-pushed the lh-netty-4.1.111 branch from 53c8760 to faebbf2 Compare June 12, 2024 13:03
@lhotari

lhotari commented Jun 12, 2024

Copy link
Copy Markdown
Member Author

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.
This resolves the issue with grpc-netty and Netty 4.1.111.Final.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lhotari added 4 commits June 12, 2024 18:08
@lhotari
Add dependency-reduced-pom.xml into the shaded jar
b293860
@lhotari
Add transient jetcd dependencies to jetcd-core-shaded
f1431db
@lhotari
Add exclusions for jetcd-core-shaded
9773857
@lhotari
Define exclusions in dependencyManagement for jetcd-core-shaded
822c87c
lhotari added a commit that referenced this pull request Jun 13, 2024
@lhotari
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
a982d7b
…-netty-shaded (#22892)

(cherry picked from commit 75d7e55)
@lhotari lhotari added the cherry-picked/branch-3.0 label Jun 13, 2024
lhotari added a commit that referenced this pull request Jun 13, 2024
@lhotari
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
9ced634
…-netty-shaded (#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)

# Conflicts:
#	distribution/server/pom.xml
@lhotari lhotari added release/3.1.4 cherry-picked/branch-3.1 labels Jun 13, 2024
lhotari added a commit that referenced this pull request Jun 13, 2024
@lhotari
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
cdda561
…-netty-shaded (#22892)

(cherry picked from commit 75d7e55)
@lhotari lhotari added the cherry-picked/branch-3.2 label Jun 13, 2024
lhotari added a commit that referenced this pull request Jun 13, 2024
@lhotari
[fix] Fix cherry-pick for #22892
e75f6ba
- version in jetcd-core-shaded/pom.xml needs to match project version
@lhotari lhotari mentioned this pull request Jun 14, 2024
[Bug] Ledger can not recover with Digest Mismatch Error #22906
Closed
2 of 3 tasks
lhotari added a commit to lhotari/pulsar that referenced this pull request Jun 14, 2024
@lhotari
Revert "[improve][misc] Upgrade to Netty 4.1.111.Final and switch to …
3396138
…use grpc-netty-shaded (apache#22892)"

This reverts commit 75d7e55.
This was referenced Jun 19, 2024
[improve][misc][WIP] Detect "double release" and "use after release" bugs with recycled objects #22110
Closed
[fix][ci] Fix jacoco code coverage report aggregation #22964
Merged
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 25, 2024
@lhotari @nikhil-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
7ca018a
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 27, 2024
@lhotari @nikhil-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
ad06559
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 27, 2024
@lhotari @nikhil-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
a150c1e
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 27, 2024
@lhotari @nikhil-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
27146ce
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
@lhotari @nikhil-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
692258c
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
@lhotari @srinath-ctds
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
8ced787
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
(cherry picked from commit a982d7b)
@martin31821 martin31821 mentioned this pull request Aug 13, 2024
[Bug] [Regression] etcd mTLS doesn't work on 3.3.1 #23160
Open
3 tasks done
@inetfuture

inetfuture commented Sep 11, 2024

Copy link
Copy Markdown

@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 bin/bookkeeper shell whatisinstanceid in pulsar-bookie-init job.

2024-09-11T16:10:48,297+0000 [main] INFO  org.apache.bookkeeper.meta.MetadataDrivers - BookKeeper metadata driver manager initialized
2024-09-11T16:10:48,408+0000 [main] ERROR org.apache.bookkeeper.bookie.BookieShell - Got an exception
java.lang.NoClassDefFoundError: io/grpc/netty/shaded/io/grpc/netty/shaded/io/netty/handler/logging/ByteBufFormat
	at org.apache.pulsar.jetcd.shaded.io.vertx.core.net.NetworkOptions.<clinit>(NetworkOptions.java:62) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at org.apache.pulsar.jetcd.shaded.io.vertx.core.VertxOptions.<init>(VertxOptions.java:143) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.vertx(ClientConnectionManager.java:223) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.defaultChannelBuilder(ClientConnectionManager.java:158) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.defaultChannelBuilder(ClientConnectionManager.java:149) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.getChannel(ClientConnectionManager.java:70) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.newStub(ClientConnectionManager.java:102) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.KVImpl.<init>(KVImpl.java:51) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientImpl.lambda$new$0(ClientImpl.java:48) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.support.MemorizingClientSupplier.get(MemorizingClientSupplier.java:37) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientImpl.getKVClient(ClientImpl.java:65) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.EtcdMetadataStore.<init>(EtcdMetadataStore.java:111) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.EtcdMetadataStoreProvider.create(EtcdMetadataStore.java:515) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.newInstance(MetadataStoreFactoryImpl.java:63) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.createExtended(MetadataStoreFactoryImpl.java:50) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.api.extended.MetadataStoreExtended.create(MetadataStoreExtended.java:42) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.AbstractMetadataDriver.createMetadataStore(AbstractMetadataDriver.java:117) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.AbstractMetadataDriver.initialize(AbstractMetadataDriver.java:59) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.PulsarMetadataBookieDriver.initialize(PulsarMetadataBookieDriver.java:45) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithMetadataBookieDriver(MetadataDrivers.java:356) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithRegistrationManager(MetadataDrivers.java:383) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.tools.cli.commands.bookies.InstanceIdCommand.apply(InstanceIdCommand.java:49) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell$WhatIsInstanceId.runCmd(BookieShell.java:1685) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell$MyCommand.runCmd(BookieShell.java:254) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2674) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2771) [org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
Caused by: java.lang.ClassNotFoundException: io.grpc.netty.shaded.io.grpc.netty.shaded.io.netty.handler.logging.ByteBufFormat
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) ~[?:?]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source) ~[?:?]
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
	... 26 more

It seems to me that this PR is related, any idea how to fix this? Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@inetfuture

inetfuture commented Sep 12, 2024

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodece nodece mentioned this pull request Sep 24, 2024
[fix][build] Remove io.grpc.netty relocation #23342
Closed
1 of 4 tasks
@lhotari

lhotari commented Sep 24, 2024

Copy link
Copy Markdown
Member Author

@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 bin/bookkeeper shell whatisinstanceid in pulsar-bookie-init job.

2024-09-11T16:10:48,297+0000 [main] INFO  org.apache.bookkeeper.meta.MetadataDrivers - BookKeeper metadata driver manager initialized
2024-09-11T16:10:48,408+0000 [main] ERROR org.apache.bookkeeper.bookie.BookieShell - Got an exception
java.lang.NoClassDefFoundError: io/grpc/netty/shaded/io/grpc/netty/shaded/io/netty/handler/logging/ByteBufFormat
	at org.apache.pulsar.jetcd.shaded.io.vertx.core.net.NetworkOptions.<clinit>(NetworkOptions.java:62) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at org.apache.pulsar.jetcd.shaded.io.vertx.core.VertxOptions.<init>(VertxOptions.java:143) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.vertx(ClientConnectionManager.java:223) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.defaultChannelBuilder(ClientConnectionManager.java:158) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.defaultChannelBuilder(ClientConnectionManager.java:149) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.getChannel(ClientConnectionManager.java:70) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientConnectionManager.newStub(ClientConnectionManager.java:102) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.KVImpl.<init>(KVImpl.java:51) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientImpl.lambda$new$0(ClientImpl.java:48) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.support.MemorizingClientSupplier.get(MemorizingClientSupplier.java:37) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at io.etcd.jetcd.impl.ClientImpl.getKVClient(ClientImpl.java:65) ~[org.apache.pulsar-jetcd-core-shaded-3.3.1-shaded.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.EtcdMetadataStore.<init>(EtcdMetadataStore.java:111) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.EtcdMetadataStoreProvider.create(EtcdMetadataStore.java:515) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.newInstance(MetadataStoreFactoryImpl.java:63) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.impl.MetadataStoreFactoryImpl.createExtended(MetadataStoreFactoryImpl.java:50) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.api.extended.MetadataStoreExtended.create(MetadataStoreExtended.java:42) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.AbstractMetadataDriver.createMetadataStore(AbstractMetadataDriver.java:117) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.AbstractMetadataDriver.initialize(AbstractMetadataDriver.java:59) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.pulsar.metadata.bookkeeper.PulsarMetadataBookieDriver.initialize(PulsarMetadataBookieDriver.java:45) ~[org.apache.pulsar-pulsar-metadata-3.3.1.jar:3.3.1]
	at org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithMetadataBookieDriver(MetadataDrivers.java:356) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.meta.MetadataDrivers.runFunctionWithRegistrationManager(MetadataDrivers.java:383) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.tools.cli.commands.bookies.InstanceIdCommand.apply(InstanceIdCommand.java:49) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell$WhatIsInstanceId.runCmd(BookieShell.java:1685) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell$MyCommand.runCmd(BookieShell.java:254) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell.run(BookieShell.java:2674) ~[org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
	at org.apache.bookkeeper.bookie.BookieShell.main(BookieShell.java:2771) [org.apache.bookkeeper-bookkeeper-server-4.17.1.jar:4.17.1]
Caused by: java.lang.ClassNotFoundException: io.grpc.netty.shaded.io.grpc.netty.shaded.io.netty.handler.logging.ByteBufFormat
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) ~[?:?]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source) ~[?:?]
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
	... 26 more

It seems to me that this PR is related, any idea how to fix this? Thanks.

@inetfuture Please report a separate GH issue with steps to reproduce. That will be helpful in addressing this problem.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@suninuni suninuni mentioned this pull request Oct 24, 2024
[Bug] NoClassDefFoundError: io/grpc/netty/shaded/io/grpc/netty/shaded/io/netty/handler/logging/ByteBufFormat #23513
Closed
2 of 3 tasks
This was referenced Nov 15, 2024
[fix][misc] Unable to connect an etcd metastore with recent releases due to jetc-core sharding problem #23604
Merged
Fix potential jetcd core shading problem Shawyeok/bookkeeper#3
Closed
poorbarcode
poorbarcode reviewed Dec 17, 2024
View reviewed changes
Comment thread pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
import io.grpc.netty.GrpcSslContexts;
import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
import io.grpc.netty.shaded.io.netty.handler.ssl.SslProvider;

@poorbarcode poorbarcode Dec 17, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@lhotari

The method definition of io.etcd.jetcd.ClientBuilder.sslContext is below

public ClientBuilder sslContext(io.netty.handler.ssl.SslContext sslContext) {
    this.sslContext = sslContext;
    return this;
}

But you changed the import item io.netty.handler.ssl.SslContext to ...shade..., how can it compile successfully? And the branch-3.0 can not be compiled successfully too

cc @tjiuming @Technoboy-

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@lhotari lhotari Jan 13, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@poorbarcode shading problems were addressed with #23604 and #23641. You might have to compile all projects on command line with mvn -T 1C clean install -DskipTests -Dspotbugs.skip=true -Dcheckstyle.skip=true -Dlicense.skip=true before running code in IntelliJ/IDEA.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari lhotari mentioned this pull request Jan 28, 2025
[fix][broker Fix bug in RangeCache where different instance of the key wouldn't ever match #23903
Merged
1 of 4 tasks
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
@lhotari hanmz
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
86023a8
…-netty-shaded (apache#22892)
nodece pushed a commit to nodece/pulsar that referenced this pull request Jun 3, 2025
@lhotari @nodece
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
84d4d3a
…-netty-shaded (apache#22892)

(cherry picked from commit 75d7e55)
Signed-off-by: Zixuan Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@poorbarcode poorbarcode poorbarcode left review comments
@Technoboy- Technoboy- Technoboy- approved these changes
@dao-jun dao-jun dao-jun approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@hangc0276 hangc0276 Awaiting requested review from hangc0276
@codelipenghui codelipenghui Awaiting requested review from codelipenghui

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lhotari lhotari

Labels

area/dependency Pull requests that update a dependency file cherry-picked/branch-3.0 cherry-picked/branch-3.1 cherry-picked/branch-3.2 cherry-picked/branch-3.3 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.6 release/3.1.4 release/3.2.4 release/3.3.1

Projects

None yet

Milestone

4.0.0

Development

Successfully merging this pull request may close these issues.

[Bug] parseMessageMetadata error when broker entry metadata enable with high loading [Bug] Cannot determine whether the message is a duplicate at this time [Bug][broker] Error deserializing message,Invalid unknonwn tag type: 7

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@lhotari @merlimat @inetfuture @Technoboy- @dao-jun @poorbarcode
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.