hudeqi commented on code in PR #13913:
URL: https://github.com/apache/kafka/pull/13913#discussion_r1248609883


##########
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorSourceConnector.java:
##########
@@ -582,12 +583,20 @@ void incrementalAlterConfigs(Map<String, Config> 
topicConfigs) {
     }
 
     private void updateTopicAcls(List<AclBinding> bindings) {
-        log.trace("Syncing {} topic ACL bindings.", bindings.size());
-        targetAdminClient.createAcls(bindings).values().forEach((k, v) -> 
v.whenComplete((x, e) -> {
-            if (e != null) {
-                log.warn("Could not sync ACL of topic {}.", 
k.pattern().name(), e);
-            }
-        }));
+        Set<AclBinding> addBindings = new HashSet<>();
+        addBindings.addAll(bindings);
+        addBindings.removeAll(knownTopicAclBindings);

Review Comment:
   Thank you very much. I learned from this blog. 
   I have changed `knownTopicAclBindings` from `List` to `Set`. 
   I would like to ask a digression: which is your IDE? 
   What plug-in tool prompts slow performance? @C0urante 



-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to