AndrewJSchofield commented on code in PR #24355:
URL: https://github.com/apache/kafka/pull/24355#discussion_r4672618068


##########
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:
   Assigning this within the constructor seems odd, given that the caller 
constructs the selector and also the client instance ID.



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