-
Notifications
You must be signed in to change notification settings - Fork 564
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
Incremental Alter Config operation kills connection #16281
Labels
area/kafka
kind/bug
Something isn't working
sev/medium
Bugs that do not meet criteria for high or critical, but are more severe than low.
Comments
good idea on returning the error code. |
michael-redpanda
added
the
sev/medium
Bugs that do not meet criteria for high or critical, but are more severe than low.
label
Jan 25, 2024
graphcareful
added a commit
to graphcareful/redpanda
that referenced
this issue
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: redpanda-data#16281
7 tasks
vbotbuildovich
pushed a commit
to vbotbuildovich/redpanda
that referenced
this issue
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: redpanda-data#16281 (cherry picked from commit 63efdf2)
vbotbuildovich
pushed a commit
to vbotbuildovich/redpanda
that referenced
this issue
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: redpanda-data#16281 (cherry picked from commit 63efdf2)
This was referenced Jan 31, 2024
vbotbuildovich
pushed a commit
to vbotbuildovich/redpanda
that referenced
this issue
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: redpanda-data#16281 (cherry picked from commit 63efdf2)
ballard26
pushed a commit
to ballard26/redpanda
that referenced
this issue
Feb 2, 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: redpanda-data#16281
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/kafka
kind/bug
Something isn't working
sev/medium
Bugs that do not meet criteria for high or critical, but are more severe than low.
Version & Environment
Redpanda version: (use
rpk version
): v23.3.3What went wrong?
When sending the following franz-go request the connection seems to get killed by Redpanda and no response is sent to the Kafka client. This generally seems to be happening for any request with an invalid value for the to be set config value (e.g. you can use
some-wrong-val
for cleanup.policy and the same issue will happen).What should have happened instead?
If something is wrong with this request, an appropriate error response should be returned in this case. I assume
INVALID_CONFIG
, error code 40 with a proper message would be a good response.Apache Kafka returns the following error for
cleanup.policy
=compactt
:and for
compression.type
=SNAPPY
:Redpanda should return the same.
How to reproduce the issue?
Additional information
The Redpanda server logs the following log line:
From the client perspective I get the following log message printed by franz-go:
The text was updated successfully, but these errors were encountered: