pulsar-client-cpp
pulsar-client-cpp copied to clipboard
disableReplication in MessageBuilder does not work in PulsarClient C++ and Java
Describe the bug Data is still replicated when disableReplication is enabled
To Reproduce Steps to reproduce the behavior:
- Setup Geo-Replication with 3 cluster(A,B,C)
- Set disableReplication = true in MessageBuilder
Message msg = MessageBuilder().setContent("repl").disableReplication(true).build();
- Producer create connect in cluster C and send
Message msg
producer.sendAsync(msg, notifySendMessage);
Actual output is consumer
- Cluster A
Received message: repl
- Cluster A
Received message: repl
- Cluster C
Received message: repl
Expected output is
- Cluster A
- Cluster A
- Cluster C
Received message: repl
Pulsar version: 2.3.0
@tuan6956 It should be disableReplication(true)
rather than false
@merlimat sorry, i edited disableReplication(true)
but it does not work
@BewareMyPower Could you please help take a look at this issue?
@codelipenghui ok, I have to make a test first.