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


##########
server/base/src/main/java/org/apache/accumulo/server/util/CheckForMetadataProblems.java:
##########
@@ -153,37 +165,45 @@ private static void 
checkMetadataAndRootTableEntries(String tableNameToCheck, Se
           justLoc = false;
         } else if (colf.equals(CurrentLocationColumnFamily.NAME)) {
           if (justLoc) {
-            System.out.println("Problem at key " + entry.getKey());
+            printProblemMethod.accept("Problem at key " + entry.getKey());
             sawProblems = true;
           }
           justLoc = true;
         }
       }
 
       if (count == 0) {
-        System.err
-            .println("ERROR : table " + tableNameToCheck + " (" + tableCheckId 
+ ") is empty");
+        printProblemMethod.accept(
+            String.format("ERROR : table %s (%s) is empty", tableNameToCheck, 
tableCheckId));

Review Comment:
   this changes `System.err` -> `System.out` when this is run from `main()`. I 
was just avoiding creating another param for just this print when run from 
main. Can keep `System.err` functionality if desired



-- 
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