Skip to content

Conversation

@ruanwenjun
Copy link
Member

No description provided.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_patch4381 branch 3 times, most recently from 9899a02 to cb9e7a5 Compare September 21, 2021 06:06
*/
public static void writeDynamicConfig(final String dynamicConfigFilename, final QuorumVerifier qv, final boolean needKeepVersion) throws IOException {
public static void writeDynamicConfig(final String dynamicConfigFilename, final QuorumVerifier qv,
final boolean needKeepVersion) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

Great refactor. There're some uncorrelated changes(most are line break). Please revert them.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for your review, I have reverted the uncorrelated changes, I am not sure if this will make the code style check failed.

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_patch4381 branch from a04f7e9 to dc6deea Compare October 20, 2021 11:47
@ruanwenjun ruanwenjun requested a review from maoling October 20, 2021 13:47
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

I left some nits, overall the patch is good, thanks

}
}

private int parseInt(String key, String value) throws ConfigException {
Copy link
Contributor

Choose a reason for hiding this comment

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

static

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, but I am little confused why we need to change this method to static? Right now, this is not used in a static method. Maybe for future?

private int parseInt(String key, String value) throws ConfigException {
try {
return Integer.parseInt(value);
} catch (Exception ex) {
Copy link
Contributor

Choose a reason for hiding this comment

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

NumberFormatException

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

private long parseLong(String key, String value) throws ConfigException {
try {
return Long.parseLong(value);
} catch (Exception ex) {
Copy link
Contributor

Choose a reason for hiding this comment

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

NumberFormatException

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_patch4381 branch from dc6deea to 4bd0894 Compare January 17, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants