HDFS-10541. Diskbalancer: When no actions in plan, error message says "Plan was generated more than 24 hours ago". Contributed by Anu Engineer.

This commit is contained in:
Anu Engineer 2016-06-17 23:29:57 -07:00 committed by Arpit Agarwal
parent cb68e5b3bd
commit 5b8e1c26d7
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ public class PlanCommand extends Command {
.getBytes(StandardCharsets.UTF_8));
}
if (plan != null) {
if (plan != null && plan.getVolumeSetPlans().size() > 0) {
LOG.info("Writing plan to : {}", getOutputPath());
try (FSDataOutputStream planStream = create(String.format(
DiskBalancer.PLAN_TEMPLATE,