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


##########
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:
   I was already missing. Added



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