apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.12k stars 3.56k forks source link

[Bug] Topic level geo configure, the partitioned topics can not auto created on remote cluster. #21153

Open liudezhi2098 opened 1 year ago

liudezhi2098 commented 1 year ago

Search before asking

Version

2.10.5

Minimal reproduce step

  1. Create a Topic with partition 2 on cluster1 bin/pulsar-admin topics create-partitioned-topic -p 2 public/geo-1/test-1
  2. Topic level GEO Configure bin/pulsar-admin topics set-replication-clusters -c cluster1,cluster2 public/geo-1/test-1
  3. View the list of partitioned topics and non-partitioned topics in Cluster2.
    
    bin/pulsar-admin topics list-partitioned-topics public/geo-1
    empty

bin/pulsar-admin topics list public/geo-1 public/geo-1/test-1-partition-0 public/geo-1/test-1-partition-1


### What did you expect to see?

View the list of partitioned topics and non-partitioned topics in Cluster2.

bin/pulsar-admin topics list-partitioned-topics public/geo-1 public/geo-1/test-1

bin/pulsar-admin topics list public/geo-1 public/geo-1/test-1-partition-0 public/geo-1/test-1-partition-1


### What did you see instead?

View the list of partitioned topics and non-partitioned topics in Cluster2.

bin/pulsar-admin topics list-partitioned-topics public/geo-1 empty

bin/pulsar-admin topics list public/geo-1 public/geo-1/test-1-partition-0 public/geo-1/test-1-partition-1


Partitioned topics are not created in the remote cluster.

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!
mattisonchao commented 12 months ago

@liudezhi2098 Could you share the broker's log when you are trying to create a partitioned topic? Plus, you can use createMissedPartitionscommand as a workaround method to fix this problem. :)

github-actions[bot] commented 11 months ago

The issue had no activity for 30 days, mark with Stale label.