You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "coderzc (via GitHub)" <gi...@apache.org> on 2023/09/22 09:09:35 UTC
[GitHub] [pulsar] coderzc commented on a diff in pull request #21212: [fix][broker] fix the global topic policy config override the local topic policy config
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org