ChenSammi commented on code in PR #10022:
URL: https://github.com/apache/ozone/pull/10022#discussion_r3115622839
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerService.java:
##########
@@ -360,6 +364,18 @@ public void setVersion(DiskBalancerVersion version) {
this.version = version;
}
+ /**
+ * Stores the comma-separated state names and rebuilds {@link
#movableContainerStates} from it.
+ * The string is what we persist; the set is used for fast {@code contains}
checks
+ * when selecting containers and before moves.
+ */
+ public void setContainerStates(String containerStates) {
+ this.containerStates = containerStates;
Review Comment:
Update containerStates after config.setContainerStates succeeds.
--
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]