alanlau28 commented on code in PR #24355:
URL: https://github.com/apache/kafka/pull/24355#discussion_r4682051281
##########
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:
##########
@@ -379,6 +379,7 @@ public NetworkClient(MetadataUpdater metadataUpdater,
this.selector = selector;
this.clientId = clientId;
this.clientInstanceId = Objects.requireNonNull(clientInstanceId,
"clientInstanceId must not be null");
+ selector.clientInstanceId(clientInstanceId);
Review Comment:
I agree it is odd.
I could pass it to `selector.connect` for each connection instead.
--
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]