philipnee commented on code in PR #16629:
URL: https://github.com/apache/kafka/pull/16629#discussion_r1688562760
##########
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:
##########
@@ -581,6 +593,13 @@ private void doSend(ClientRequest clientRequest, boolean
isInternalRequest, long
public List<ClientResponse> poll(long timeout, long now) {
ensureActive();
+ if (!this.isBootstrapped() && !this.isBootstrapDisabled()) {
Review Comment:
let's move this to ensureBootstrapped().
I also wonder if we could make bootstrapState and optional, so we just need
to check bootstrapState.isEmpty() - true: don't need to bootstrap, false:
perform bootstrap
--
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]