dlmarion commented on code in PR #5450:
URL: https://github.com/apache/accumulo/pull/5450#discussion_r2027619784


##########
server/manager/src/main/java/org/apache/accumulo/manager/state/SetGoalState.java:
##########
@@ -36,7 +36,15 @@ public class SetGoalState {
    * Utility program that will change the goal state for the manager from the 
command line.
    */
   public static void main(String[] args) throws Exception {
-    if (args.length != 1 || ManagerGoalState.valueOf(args[0]) == null) {
+    if (args.length != 1) {
+      System.err.println(
+          "Usage: accumulo " + SetGoalState.class.getName() + " 
[NORMAL|SAFE_MODE|CLEAN_STOP]");
+      System.exit(-1);
+    }
+
+    try {

Review Comment:
   Change is bugged, should be `Preconditions.checkArgument(args.length == 1);`



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

Reply via email to