AndrewJSchofield commented on code in PR #24355:
URL: https://github.com/apache/kafka/pull/24355#discussion_r4721300592
##########
clients/src/main/java/org/apache/kafka/common/network/Selector.java:
##########
@@ -243,18 +244,20 @@ public Selector(long connectionMaxIdleMS, int
failedAuthenticationDelayMs, Metri
* @param address The address to connect to
* @param sendBufferSize The send buffer for the new connection
* @param receiveBufferSize The receive buffer for the new connection
+ * @param clientInstanceId The client instance ID of the client opening
the new connection
* @throws IllegalStateException if there is already a connection for that
id
* @throws IOException if DNS resolution fails on the hostname or if the
broker is down
*/
@Override
- public void connect(String id, InetSocketAddress address, int
sendBufferSize, int receiveBufferSize) throws IOException {
+ public void connect(String id, InetSocketAddress address, int
sendBufferSize, int receiveBufferSize,
+ Uuid clientInstanceId) throws IOException {
ensureNotRegistered(id);
Review Comment:
The client is required to initialize client instance ID these days I think.
Of course, it might not be able to send it to an older broker, but it will at
least always have one. You could assert
`Objects.requireNonNull(clientInstanceId)` here I think to make sure.
--
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]