Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka/s/h: Wrap call to lexical_cast in try block
- 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)
- Loading branch information