ChenSammi commented on code in PR #4408:
URL: https://github.com/apache/ozone/pull/4408#discussion_r1141612796
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerService.java:
##########
@@ -110,6 +119,19 @@ public DiskBalancerService(OzoneContainer ozoneContainer,
deltaSizes = new ConcurrentHashMap<>();
volumeSet = ozoneContainer.getVolumeSet();
+ try {
+ volumeChoosingPolicy = conf.getClass(
+ HDDS_DATANODE_DISK_BALANCER_VOLUME_CHOOSING_POLICY,
+ DefaultVolumeChoosingPolicy.class,
+ VolumeChoosingPolicy.class).newInstance();
+ containerChoosingPolicy = conf.getClass(
+ HDDS_DATANODE_DISK_BALANCER_CONTAINER_CHOOSING_POLICY,
+ DefaultContainerChoosingPolicy.class,
+ ContainerChoosingPolicy.class).newInstance();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
Review Comment:
Please log error meg here.
--
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]