-
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
Refactor InitWriterConfig #9922
Conversation
Signed-off-by: Lixin Yao <[email protected]>
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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 think the system tests failed because the config libraries cannot handle true
/ false
unless they are in lower case and the Cluster Operator sets it in upper case. I think you have to update the method for parsing the boolean in ConfigParameterParser
to use equalsIgnoreCase
instead:
/**
* A Java Boolean
*/
ConfigParameterParser<Boolean> BOOLEAN = configValue -> {
if (configValue.equalsIgnoreCase("true") || configValue.equalsIgnoreCase("false")) {
return Boolean.parseBoolean(configValue);
} else {
throw new InvalidConfigurationException("Failed to parse. Value " + configValue + " is not valid");
}
};
Signed-off-by: Lixin Yao <[email protected]>
Done |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Thanks. LGTM.
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. Thanks for the PR!
Type of change
Select the type of your PR
Description
Refactor the InitWriterConfig in the kafka-init module to use the shared classes, fix #9881
Checklist
Please go through this checklist and make sure all applicable tasks have been done