coderzc commented on code in PR #21212:
URL: https://github.com/apache/pulsar/pull/21212#discussion_r1334114516
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java:
##########
@@ -365,6 +365,7 @@ private void
initPolicesCache(SystemTopicClient.Reader<PulsarEvent> reader, Comp
if (hasMore) {
reader.readNextAsync().thenAccept(msg -> {
refreshTopicPoliciesCache(msg);
+ notifyListener(msg);
Review Comment:
It's best to wait for initPolicesCache to complete before notifying the
listeners.
--
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]