pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[Bug] "Topic does not have schema to check" on topic-level geo replication

Open shulaoh opened this issue 9 months ago • 2 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Read release policy

  • [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

pulsar 3.0.1 jdk 8

Minimal reproduce step

  1. create 2 clusters with local zk.
  2. create tenant, namespace, topic on each cluster.
  3. pulsar-admin topics set-replication-clusters --clusters cluster-A,cluster-B to setup topic-level geo replication
  4. create consumer with Schema.STRING. client.newConsumer(Schema.STRING).consumerName("a1") .subscriptionName("ca1") .topic("persistent://aa/bb/cc") .replicateSubscriptionState(true) .messageListener((c, m) -> { System.out.println("message: " + m.getValue()); try { c.acknowledge(m); } catch (ClientException e) { throw new RuntimeException(e); } }).subscribe();

What did you expect to see?

consumer can be registered succesfully.

What did you see instead?

Topic does not have schema to check

Anything else?

btw, namespace-level geo replication works well.

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

shulaoh avatar Apr 28 '24 08:04 shulaoh

I'm facing the same problem, is there any progress here?

danielnaumau avatar May 21 '24 12:05 danielnaumau

https://github.com/apache/pulsar/pull/22720 could fix this

dao-jun avatar May 21 '24 18:05 dao-jun