codelipenghui commented on code in PR #16438:
URL: https://github.com/apache/pulsar/pull/16438#discussion_r916408854


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java:
##########
@@ -2015,7 +2015,7 @@ private void handleLocalPoliciesUpdates(NamespaceName 
namespace) {
                         if (namespace.includes(TopicName.get(name))) {
                             // If the topic is already created, immediately 
apply the updated policies, otherwise
                             // once the topic is created it'll apply the 
policies update
-                            topicFuture.thenAccept(topic -> {
+                            topicFuture.thenAcceptAsync(topic -> {

Review Comment:
   Why we need to switch the thread again here? In most case the topicFuture is 
completed, if the topicFuture is completed, we'd better make it execute in 
current thread.



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

Reply via email to