-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-13878. Cleanup SCM dependency and add enhancements for direct Client–DN flow with updated testing #9310
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
.../src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerConfiguration.java
Outdated
Show resolved
Hide resolved
...ds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestNodeDecommissionManager.java
Show resolved
Hide resolved
...dmin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DiskBalancerReportSubcommand.java
Show resolved
Hide resolved
...zone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DatanodeParameters.java
Show resolved
Hide resolved
...in/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/AbstractDiskBalancerSubCommand.java
Outdated
Show resolved
Hide resolved
|
@Gargi-jais11 , could you add some example about the failure case output of CLI? with/without json enabled. |
Okay sure, I will try to add output as soon as possible. |
|
Failure Case Output of CLI without json enabled: Failure Case Output of CLI with json enabled: Thanks, @ChenSammi for pointing this out. Seems to be overlooked by me. Here for json case expected failure for DN-5 is not in json format like this: I will do work around on this to be the required format. |
|
New Failure Case Output of CLI without json enabled: New Failure Case Output of CLI with json enabled: |
...in/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/AbstractDiskBalancerSubCommand.java
Outdated
Show resolved
Hide resolved
...admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/DiskBalancerStartSubcommand.java
Show resolved
Hide resolved
|
For json failure case, since we add "status" : "failure" to result, to keep symmentric, it's better to add "status" : "success" to all success output of all commands too. Specifically for status command, "status" is currently used to represent disk balancer service status, we should choose another word, for example "serviceStatus". |
…consistent JSON response
|
Thanks @Gargi-jais11 , wait for CI to pass. |
What changes were proposed in this pull request?
After implementing direct client-to-DN communication for DiskBalancer in HDDS-13598, the SCM part is no longer needed and should be removed.
This JIRA covers:
ScmServerDatanodeHeartbeatProtocol.protoandScmAdminProtocol.protoTestDiskBalancer,TestDiskBalancerDuringDecommissionAndMaintenance) for direct communicationtestdiskbalancer.robotrobot test.DiskBalancer.md).What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13878
How was this patch tested?
Added new Unit Test :
TestDiskBalancerSubCommandsUpdated Integration Tests :
TestDiskBalancer.javaandTestDiskBalancerDuringDecommissioningAndMaintenance.javaUpdated Acceptance Test :
testdiskbalancer.robotBelow are the manual test output from docker-cluster: