-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve min.insync.replicas parsing in warnTooLargeMinIsr #10844
Conversation
When reconciling a replicas change, we check the target number of replicas against the configured minISR. In that case, a ClassCastException is raised if the user sets min.insync.replicas: "1" (quoted value). This patch aligns this configuration parsing to the rest of the code, where this is tolerated. Signed-off-by: Federico Valeri <[email protected]>
The failed test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there should be some test for it if we want to support both String and Integer formats?
Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Show resolved
Hide resolved
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Show resolved
Hide resolved
topic-operator/src/main/java/io/strimzi/operator/topic/KafkaHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Federico Valeri <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ppatierno @see-quick is this ready to merged? |
I assume this test case |
Correct. The issue was triggered specifically by a RF change, that's why I added there. |
) Signed-off-by: Federico Valeri <[email protected]>
Type of change
Description
When reconciling a replicas change, we check the target number of replicas against the configured minISR. In that case, a ClassCastException is raised if the user sets min.insync.replicas: "1" (quoted value). This patch aligns this configuration parsing to the rest of the code, where this is tolerated.
Checklist