-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-12435. [DiskBalancer] Add success move count and fail move count in status report #8009
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
Conversation
smengcl
left a comment
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
hadoop-hdds/interface-server/src/main/proto/ScmServerDatanodeHeartbeatProtocol.proto
Outdated
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/DiskBalancerManager.java
Outdated
Show resolved
Hide resolved
...ools/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DiskBalancerStatusSubcommand.java
Outdated
Show resolved
Hide resolved
...r-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerInfo.java
Outdated
Show resolved
Hide resolved
|
|
||
| DiskBalancerStatus status = statusMap.get(dn); | ||
| if (status == null) { | ||
| status = new DiskBalancerStatus(false, new DiskBalancerConfiguration(), 0, 0); |
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.
@Gargi-jais11 , please refactor this DiskBalancerStatus, as DiskBalancerRunningStatus has three state, not just ture and false, let's try changing the DiskBalancerStatus#isRunning from boolean to HddsProtos.DiskBalancerRunningStatus.
After the refactor, getRunningStatus() can be simply replaced with DiskBalancerStatus#getRunningStatus.
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.
Also, please update the above console output of "ozone admin datanode diskbalancer status" command with new example.
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.
Ok
c92af04 to
f588c8b
Compare
… in status report
f588c8b to
5028af4
Compare
What changes were proposed in this pull request?
As the status helps to reveal the disk balancer task state to user, add success move count and fail move count to status report.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-12435
How was this patch tested?
The patch was tested manually on docker cluster by checking diskbalancer status command.