Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.2.x] kafka: Wrap call to lexical_cast in try block #16407

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16399
Fixes: #16405,

- incremental_alter_configs requests were killing connections when
requests supplied an invalid string as a compression_type argument.

- The method lexical_cast invokes to convert a compression to a string
contains a string_switch method without a default clause, this throws
when no matches are found. The solution is to wrap the call to
lexical_cast in a try/catch clause.

- Fixes: redpanda-data#16281

(cherry picked from commit 63efdf2)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Jan 31, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jan 31, 2024
@graphcareful graphcareful merged commit 4edcba8 into redpanda-data:v23.2.x Feb 1, 2024
24 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.2.x-next, v23.2.25 Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants