Skip to content

fix: correct ApiVersionsResponse handling of ErrUnsupportedVersion (#…#20

Merged
3AceShowHand merged 1 commit into
pingcap:v1.41.2-pingcapfrom
3AceShowHand:cp-3337
May 7, 2026
Merged

fix: correct ApiVersionsResponse handling of ErrUnsupportedVersion (#…#20
3AceShowHand merged 1 commit into
pingcap:v1.41.2-pingcapfrom
3AceShowHand:cp-3337

Conversation

@3AceShowHand

Copy link
Copy Markdown
Collaborator

…3337)

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

…BM#3337)

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 <dominic.evans@uk.ibm.com>
@3AceShowHand 3AceShowHand merged commit 50003b7 into pingcap:v1.41.2-pingcap May 7, 2026
16 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants