HDFS-10496. DiskBalancer: ExecuteCommand checks planFile in a wrong way. Contributed by Lei (Eddy) Xu.

This commit is contained in:
Anu Engineer 2016-06-07 15:10:22 -07:00 committed by Arpit Agarwal
parent 64ccb232cc
commit d2ff793ae4
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ExecuteCommand extends Command {
verifyCommandOptions(DiskBalancer.EXECUTE, cmd); verifyCommandOptions(DiskBalancer.EXECUTE, cmd);
String planFile = cmd.getOptionValue(DiskBalancer.EXECUTE); String planFile = cmd.getOptionValue(DiskBalancer.EXECUTE);
Preconditions.checkArgument(planFile == null || planFile.isEmpty(), Preconditions.checkArgument(planFile != null && !planFile.isEmpty(),
"Invalid plan file specified."); "Invalid plan file specified.");
String planData = null; String planData = null;