ijuma commented on code in PR #18295:
URL: https://github.com/apache/kafka/pull/18295#discussion_r1899001868
##########
core/src/main/scala/kafka/network/SocketServer.scala:
##########
@@ -1107,8 +1107,10 @@ private[kafka] class Processor(
val header = RequestHeader.parse(buffer)
if (apiVersionManager.isApiEnabled(header.apiKey, header.apiVersion)) {
header
- } else {
+ } else if (header.isApiVersionDeprecated()) {
throw new InvalidRequestException(s"Received request api key
${header.apiKey} with version ${header.apiVersion} which is not enabled")
+ } else {
+ throw new UnsupportedVersionException(s"Received request api key
${header.apiKey} with version ${header.apiVersion} which is not supported")
Review Comment:
Submitted the fix: https://github.com/apache/kafka/pull/18340
--
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]