-
Notifications
You must be signed in to change notification settings - Fork 14.3k
KAFKA-17601: Inter-broker connections do not expose their clientSoftwareName and clientSoftwareVersion tags #17731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1145,6 +1145,7 @@ private[kafka] class Processor( | |
channel.channelMetadataRegistry.registerClientInformation(new ClientInformation( | ||
apiVersionsRequest.data.clientSoftwareName, | ||
apiVersionsRequest.data.clientSoftwareVersion)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I mean is that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @chia7712, thanks for the suggestion. I updated code. Could you take a look again? Thanks. |
||
context.clientInformation = channel.channelMetadataRegistry.clientInformation | ||
} | ||
} | ||
requestChannel.sendRequest(req) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,8 +274,8 @@ class SocketServerTest { | |
sendRequest(plainSocket, apiVersionRequestBytes(clientId, version)) | ||
var receivedReq = receiveRequest(server.dataPlaneRequestChannel) | ||
|
||
assertEquals(ClientInformation.UNKNOWN_NAME_OR_VERSION, receivedReq.context.clientInformation.softwareName) | ||
assertEquals(ClientInformation.UNKNOWN_NAME_OR_VERSION, receivedReq.context.clientInformation.softwareVersion) | ||
assertEquals(expectedClientSoftwareName, receivedReq.context.clientInformation.softwareName) | ||
assertEquals(expectedClientSoftwareVersion, receivedReq.context.clientInformation.softwareVersion) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment above these lines is wrong with this change. I assume there was a reason for the original behavior though - @dajac @rajinisivaram do you recall? |
||
|
||
server.dataPlaneRequestChannel.sendNoOpResponse(receivedReq) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making this mutable and public seems dangerous. A few things to consider: