alanlau28 opened a new pull request, #23317: URL: https://github.com/apache/kafka/pull/23317
Jira: https://issues.apache.org/jira/browse/KAFKA-20923 KIP-1313 needs each RPC to declare its request and response header version explicitly rather than deriving it implicitly from body flexibility, so that a later header version (v3, carrying the client instance ID) can be mapped to specific request versions. This change adds an optional headerVersions property to the request/response message schemas and teaches the code generator to emit requestHeaderVersion/responseHeaderVersion from it, falling back to the existing implicit derivation when the property is absent. Each map is validated against the RequestHeader/ResponseHeader valid versions, and the generated values are identical to the previous implicit logic for every existing API and version, so this phase is behavior-preserving. The api-versions output now also shows the request header version for each API. -- 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]
