ozone
ozone copied to clipboard
HDDS-10699. Refactor ContainerBalancerTask and tests in TestContainerBalancerTask
In PR for HDDS-9889 we discussed with Siddhant Sangwan that tests form org.apache.hadoop.hdds.scm.container.balancer.TestContainerBalancerTask
could be refactored using MockedSCM
class (introduced in HDDS-9889)
What changes were proposed in this pull request?
- Refactor some tests from
org.apache.hadoop.hdds.scm.container.balancer.TestContainerBalancerTask
- Made some cleanups in
org.apache.hadoop.hdds.scm.container.balancer.ContainerBalancerTask
related to changes in refactored test
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10699
How was this patch tested?
Use standalone tests
@siddhantsangwan, please look first at https://github.com/apache/ozone/pull/5758. We have to finish it first.
@adoroszlai, merge the changes please
Thanks @Montura for the patch, @sumitagrawl, @Tejaskriya for the review.