MarvinCai commented on a change in pull request #8125:
URL: https://github.com/apache/pulsar/pull/8125#discussion_r701551236
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
##########
@@ -251,6 +253,9 @@
private volatile CompletableFuture<Void> closeFuture;
// key is listener name , value is pulsar address and pulsar ssl address
private Map<String, AdvertisedListener> advertisedListeners;
+ // For REST api, keep track of topics served by this pulsar.
+ @Getter
+ private ConcurrentOpenHashMap<String, ConcurrentOpenHashSet<Integer>>
owningTopics = new ConcurrentOpenHashMap<>();
Review comment:
I assume you're talking about the multiLayerTopicsMap in BrokerService,
I took a look and it does contain topic ownership data, but it's not very handy
in this use case which we need to keep track of serving topics as well as all
partitions on a broker when publish to a partition topic so we can distribute
message to all partitions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]