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.3.x] kafka: Wrap call to lexical_cast in try block #16406

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #16399
Fixes: #16404,

- 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.3.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 493fcef into redpanda-data:v23.3.x Feb 2, 2024
18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.5 Feb 7, 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