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


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java:
##########
@@ -84,6 +86,8 @@ public class SystemTopicBasedTopicPoliciesService implements 
TopicPoliciesServic
     @VisibleForTesting
     final Map<TopicName, List<TopicPolicyListener<TopicPolicies>>> listeners = 
new ConcurrentHashMap<>();
 
+    final Map<TopicName, BlockingDeque<CompletableFuture>> results = new 
ConcurrentHashMap<>();

Review Comment:
   There are two other concerns about the fix:
   - The problem still exists if the Topic Owner is transferred to another 
broker
   - Now the reading is correct. But the topic may have yet to apply the latest 
policy even if users received the response.
   
   
   



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