Skip to content

fix: correct ApiVersionsResponse handling of ErrUnsupportedVersion#3337

Merged
dnwe merged 1 commit intomainfrom
dnwe/apiversions
Oct 3, 2025
Merged

fix: correct ApiVersionsResponse handling of ErrUnsupportedVersion#3337
dnwe merged 1 commit intomainfrom
dnwe/apiversions

Conversation

@dnwe
Copy link
Copy Markdown
Collaborator

@dnwe dnwe commented Oct 3, 2025

Improve the api_versions_response_test.go to be more representative of the different good and bad responses it might receive.

Subsequently fix the ApiVersionsResponse decoding so that it correctly downgrades the decoder from flexible to non-flexible after reading the ErrorCode of UnsupportedVersion

@dnwe dnwe force-pushed the dnwe/apiversions branch from bd4c968 to 5096d79 Compare October 3, 2025 11:37
@dnwe

This comment was marked as outdated.

@dnwe dnwe force-pushed the dnwe/apiversions branch 2 times, most recently from 2df8318 to 2b88f9f Compare October 3, 2025 16:14
Improve the api_versions_response_test.go to be more representative of
the different good and bad responses it might receive.

Subsequently fix the ApiVersionsResponse decoding so that it correctly
downgrades the decoder from flexible to non-flexible after reading the
ErrorCode of UnsupportedVersion

Signed-off-by: Dominic Evans <[email protected]>
@dnwe dnwe force-pushed the dnwe/apiversions branch from 2b88f9f to 5145a4b Compare October 3, 2025 19:12
@dnwe

This comment was marked as resolved.

@dnwe dnwe marked this pull request as ready for review October 3, 2025 19:14
Copy link
Copy Markdown
Collaborator

@hindessm hindessm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnwe dnwe added the fix label Oct 3, 2025
@dnwe dnwe merged commit c008165 into main Oct 3, 2025
22 of 23 checks passed
@dnwe dnwe deleted the dnwe/apiversions branch October 3, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants