Skip to content

Conversation

@sodonnel
Copy link
Contributor

@sodonnel sodonnel commented Feb 5, 2024

What changes were proposed in this pull request?

Currently the disk balancer status command requires passing -c / --count to list any nodes as the default value of "count" is zero. If you omit the -c no results are returned.

The default should allow the report to be produced. I propose setting the default to 25.

What is the link to the Apache JIRA

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

How was this patch tested?

Manually via docker-compose. After this change the output looks like:

bash-4.2$ ozone admin datanode diskbalancer report
Report result:
Datanode                                           VolumeDensity
ozone_datanode_1.ozone_default                     0.0

Before, no results would have been returned unless a positive value was passed for -c

@sodonnel sodonnel requested a review from symious February 5, 2024 14:00
Copy link
Contributor

@symious symious left a 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 fix.

@sodonnel sodonnel changed the title HDDS-10297. Disk Balancer Report command should default to 25 nodes HDDS-10297. [Disk Balancer] Report command should default to 25 nodes Feb 5, 2024
@sodonnel sodonnel merged commit 5f09bde into apache:HDDS-5713 Feb 5, 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
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.

2 participants