-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
NPE when create message meta builder #5727
Labels
Comments
found a similar one: netty/netty#9640 |
The following demo can reproduce: PulsarClient client = PulsarClient.builder().serviceUrl("pulsar://127.0.0.1:6650").build();
Producer<byte[]> producer = client.newProducer().topic("test").create();
TypedMessageBuilder<byte[]> messageBuilder = producer.newMessage();
for (int i = 0; i < 1000; i++) {
messageBuilder.key(i + "").value(new byte[128]).sendAsync();
} It's better to add check for TypedMessageBuilder, because it can only send once. |
Test pass from pulsar client 2.6.0. |
Closed as fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
Here is the stack trace:
Additional context
Pulsar client version:2.4.0
The text was updated successfully, but these errors were encountered: