thetumbled commented on code in PR #21030:
URL: https://github.com/apache/pulsar/pull/21030#discussion_r1299685993


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java:
##########
@@ -97,7 +101,10 @@ public CompletableFuture<Void> 
deleteTopicPoliciesAsync(TopicName topicName) {
 
     @Override
     public CompletableFuture<Void> updateTopicPoliciesAsync(TopicName 
topicName, TopicPolicies policies) {
-        return sendTopicPolicyEvent(topicName, ActionType.UPDATE, policies);
+        CompletableFuture<Void> result = new CompletableFuture<>();
+        results.computeIfAbsent(topicName, k -> new 
LinkedBlockingDeque<>()).add(result);

Review Comment:
   fixed.



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