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

kafka: Wrap call to lexical_cast in try block #16399

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

graphcareful
Copy link
Contributor

@graphcareful graphcareful commented Jan 31, 2024

  • 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: Incremental Alter Config operation kills connection #16281

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

Bug Fixes

  • Fixes issue that causes the connection to hang when an unsupported compression type is passed via an incremental_alter_configs request

- 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
Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

lgtm

@graphcareful graphcareful merged commit b553f26 into redpanda-data:dev Jan 31, 2024
21 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

@vbotbuildovich
Copy link
Collaborator

/backport v23.2.x

@vbotbuildovich
Copy link
Collaborator

/backport v23.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incremental Alter Config operation kills connection
4 participants