poorbarcode commented on code in PR #24279:
URL: https://github.com/apache/pulsar/pull/24279#discussion_r2087114301


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java:
##########
@@ -4421,9 +4421,13 @@ protected CompletableFuture<Void> initTopicPolicy() {
                 return CompletableFuture.completedFuture(null);
             }
             return 
topicPoliciesService.getTopicPoliciesAsync(partitionedTopicName,
-                    TopicPoliciesService.GetType.DEFAULT
-            ).thenAcceptAsync(optionalPolicies -> 
optionalPolicies.ifPresent(this::onUpdate),
-                    brokerService.getTopicOrderedExecutor());
+                    TopicPoliciesService.GetType.GLOBAL_ONLY)
+            .thenAcceptAsync(optionalPolicies -> 
optionalPolicies.ifPresent(this::onUpdate),

Review Comment:
   @gaoran10 
   
   > The topic has a method onUpdate(TopicPolicies policies), could we leverage 
this topic policies update mechanism?
   
   Used the method `onUpdate(TopicPolicies policies)` here. 



-- 
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-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to