frankvicky commented on code in PR #21080:
URL: https://github.com/apache/kafka/pull/21080#discussion_r3595715920
##########
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:
##########
@@ -391,11 +391,14 @@ public NetworkClient(MetadataUpdater metadataUpdater,
this.metadataRecoveryStrategy = metadataRecoveryStrategy;
this.metadataClusterCheckEnable = metadataClusterCheckEnable;
this.bootstrapConfiguration = bootstrapConfiguration;
- // Bootstrap timer is lazily initialized on first poll to ensure
timeout starts when polling begins
Review Comment:
Good catch — decoupled the two. Constructor now only kicks off the pending
resolution (CompletableFuture.supplyAsync(...) directly), without creating the
bootstrap timer.
--
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]