Skip to content

Conversation

@symious
Copy link
Contributor

@symious symious commented Sep 19, 2022

What changes were proposed in this pull request?

This ticket is to add a common option for DiskBalancer CLI.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7234

How was this patch tested?

original unit test.

@symious
Copy link
Contributor Author

symious commented Sep 19, 2022

@lokeshj1703 Please help to review.

Copy link
Contributor

@dineshchitlangia dineshchitlangia left a comment

Choose a reason for hiding this comment

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

Overall looks good, suggested minor changes.
Thank you for your contribution.

Comment on lines 30 to 31
@CommandLine.Option(names = {"-a", "--allDatanodes"},
description = "Run commands on all datanodes.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider replacing --allDatanodes with just --all

Comment on lines 34 to 35
@CommandLine.Option(names = {"--hosts"},
description = "Run commands on specific datanodes.")
Copy link
Contributor

Choose a reason for hiding this comment

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

To maintain consistency with other options, we should have both short and a long option name -> -h and --hosts
If -h is used for help or conflicts with any existing options, consider using -d and --datanodes

symious and others added 4 commits September 20, 2022 11:26
…/datanode/DiskBalancerCommonOptions.java

Co-authored-by: Dinesh Chitlangia <dineshchitlangia@gmail.com>
…/datanode/DiskBalancerCommonOptions.java

Co-authored-by: Dinesh Chitlangia <dineshchitlangia@gmail.com>
Copy link
Contributor

@lokeshj1703 lokeshj1703 left a comment

Choose a reason for hiding this comment

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

@symious Thanks for working on this! The changes look good to me. I have a few comments inline.

@symious
Copy link
Contributor Author

symious commented Sep 20, 2022

@dineshchitlangia @lokeshj1703 Updated the PR, please have a look.

@ferhui
Copy link
Contributor

ferhui commented Sep 21, 2022

@dineshchitlangia @lokeshj1703 Hi, do you have other comments? Plan to merge it tmr.

Copy link
Contributor

@lokeshj1703 lokeshj1703 left a comment

Choose a reason for hiding this comment

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

Thanks @symious for updating the PR! The changes look good to me. +1.

@ferhui ferhui merged commit 35791f5 into apache:HDDS-5713 Sep 22, 2022
@ferhui
Copy link
Contributor

ferhui commented Sep 22, 2022

@symious Thanks for your contribution! @dineshchitlangia @lokeshj1703 Thanks for your careful review! Merged

@symious
Copy link
Contributor Author

symious commented Sep 22, 2022

@ferhui @lokeshj1703 @dineshchitlangia Thank you for the review.

symious added a commit to symious/ozone that referenced this pull request Mar 16, 2023
symious added a commit to symious/ozone that referenced this pull request Jan 29, 2024
sodonnel pushed a commit to sodonnel/hadoop-ozone that referenced this pull request Feb 1, 2024
sadanand48 pushed a commit to sadanand48/hadoop-ozone that referenced this pull request Apr 17, 2024
sadanand48 pushed a commit to sadanand48/hadoop-ozone that referenced this pull request Apr 17, 2024
ChenSammi pushed a commit to ChenSammi/ozone that referenced this pull request Feb 19, 2025
ChenSammi pushed a commit to ChenSammi/ozone that referenced this pull request Feb 20, 2025
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.

4 participants