kevinrr888 commented on code in PR #5416:
URL: https://github.com/apache/accumulo/pull/5416#discussion_r2023060516


##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -987,67 +928,71 @@ private long balanceTablets() {
       final Map<DataLevel,Set<KeyExtent>> partitionedMigrations = 
partitionMigrations();
       int levelsCompleted = 0;
 
-      for (DataLevel dl : DataLevel.values()) {
-        if (dl == DataLevel.USER && tabletsNotHosted > 0) {
-          log.debug("not balancing user tablets because there are {} unhosted 
tablets",
-              tabletsNotHosted);
-          continue;
-        }
-
-        if ((dl == DataLevel.METADATA || dl == DataLevel.USER)
-            && !partitionedMigrations.get(DataLevel.ROOT).isEmpty()) {
-          log.debug("Not balancing {} because {} has migrations", dl, 
DataLevel.ROOT);
-          continue;
-        }
+      try (var tabletsMutator = getContext().getAmple().mutateTablets()) {

Review Comment:
   Fixed to create a tablet mutator per data level



-- 
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: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to