JiayaoS opened a new pull request, #22230: URL: https://github.com/apache/kafka/pull/22230
`AuthorizableRequestContext#requestType()` and `requestVersion()` were declared as `int`, but the underlying Kafka protocol defines both `request_api_key` and `request_api_version` as 16-bit integers (`Int16`). The actual data source, `RequestHeader#apiKey().id` and `RequestHeader#apiVersion()`, both return `short`. This inconsistency was noted in https://github.com/apache/kafka/pull/22214#discussion_r3192220235. This patch changes the return types from `int` to `short` to align with the protocol specification, and updates all affected implementations and call sites accordingly. -- 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]
