TaiJuWu commented on code in PR #19050:
URL: https://github.com/apache/kafka/pull/19050#discussion_r2028375807


##########
metadata/src/main/java/org/apache/kafka/metadata/publisher/AclPublisher.java:
##########
@@ -103,6 +105,9 @@ public void onMetadataUpdate(MetadataDelta delta, 
MetadataImage newImage, Loader
 
     @Override
     public void close() {
-        authorizer.ifPresent(clusterMetadataAuthorizer -> 
clusterMetadataAuthorizer.completeInitialLoad(new TimeoutException()));
+        authorizer.ifPresent(authorizer -> {
+            ClusterMetadataAuthorizer clusterMetadataAuthorizer = 
(ClusterMetadataAuthorizer) authorizer.get();
+            clusterMetadataAuthorizer.completeInitialLoad(new 
TimeoutException());
+        });
     }
 }

Review Comment:
   nit: new line



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