Montura commented on code in PR #7156:
URL: https://github.com/apache/ozone/pull/7156#discussion_r1832961306
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/balancer/TestContainerBalancerDatanodeNodeLimit.java:
##########
@@ -208,15 +186,7 @@ public void
balancerShouldObeyMaxSizeLeavingSourceLimit(@Nonnull MockedSCM mocke
@ParameterizedTest(name = "MockedSCM #{index}: {0}")
@MethodSource("createMockedSCMs")
public void
initializeIterationShouldUpdateUnBalancedNodesWhenThresholdChanges(@Nonnull
MockedSCM mockedSCM) {
- ContainerBalancerConfiguration config = new
OzoneConfiguration().getObject(ContainerBalancerConfiguration.class);
- int nodeCount = mockedSCM.getCluster().getNodeCount();
- if (nodeCount < DATANODE_COUNT_LIMIT_FOR_SMALL_CLUSTER) {
- config.setMaxDatanodesPercentageToInvolvePerIteration(100);
- }
- config.setThreshold(10);
Review Comment:
/ready
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]