chia7712 commented on code in PR #21080:
URL: https://github.com/apache/kafka/pull/21080#discussion_r2956271208


##########
clients/src/main/java/org/apache/kafka/clients/ManualMetadataUpdater.java:
##########
@@ -81,6 +82,19 @@ public void handleSuccessfulResponse(RequestHeader 
requestHeader, long now, Meta
         // Do nothing
     }
 
+    @Override
+    public boolean isBootstrapped() {
+        // ManualMetadataUpdater is designed for cases where nodes are 
manually set,
+        // so we consider it bootstrapped if nodes have been provided
+        return !nodes.isEmpty();
+    }
+
+    @Override
+    public void bootstrap(List<InetSocketAddress> addresses) {
+        // ManualMetadataUpdater doesn't use NetworkClient's bootstrap 
mechanism

Review Comment:
   ditto



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