[Bug] when define Consumer in class field, and restart consumer, message received More than once #22759
Closed
2 of 3 tasks
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
server: pulsar-3.2.2 standalone
client: java-client 3.2.3
Minimal reproduce step
java code:
testProducer();
disable:testConsumer();
and starttestProducer();
enable:testConsumer();
and restarttestProducer();
enable:testConsumer();
and restartstatic Consumer<byte[]> consumer;
and restartstatic Consumer<byte[]> consumer;
and restartWhat did you expect to see?
message should receive only once
What did you see instead?
if defined
static Consumer<byte[]> consumer;
, restart application, message will receive more than once.if delete the field, it is good.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: