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


##########
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:
   The scenario that builds managed ledger config can not use the method 
`onUpdate(TopicPolicies policies)` because managed ledger config is used to 
build managed ledger, which is earlier than init topic.



-- 
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