m1a2st opened a new pull request, #23665:
URL: https://github.com/apache/kafka/pull/23665

   `RequestHeader.parse()` derives the header version from the request API 
version and parses the entire
   header using that schema. For an API version unknown to the broker, it falls 
back to the latest
   supported header version. If a future version adds a non-tagged field, 
parsing fails with
   `InvalidRequestException` and closes the connection, so a newer client 
sending `ApiVersionsRequest`
   never receives the v0 `UNSUPPORTED_VERSION` response needed to downgrade.
   
   For unsupported API versions, `RequestHeader.parse()` now reads only fields 
with a fixed layout across
   header versions (API key, API version, correlation ID, and client ID), 
leaving the rest unparsed.
   Supported versions continue to be parsed as before.
   


-- 
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]

Reply via email to