aQuigs commented on code in PR #7127:
URL: https://github.com/apache/hadoop/pull/7127#discussion_r1813174162


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java:
##########
@@ -1078,6 +1116,10 @@ static BalancerParameters parse(String[] args) {
           }
           Preconditions.checkArgument(excludedNodes == null || includedNodes 
== null,
               "-exclude and -include options cannot be specified together.");
+          Preconditions.checkArgument(excludedSourceNodes == null || 
sourceNodes == null,
+              "-exclude and -include options cannot be specified together.");
+          Preconditions.checkArgument(excludedTargetNodes == null || 
targetNodes == null,
+              "-exclude and -include options cannot be specified together.");

Review Comment:
   nit: fixup these error messages too for the proper arg name



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

Reply via email to