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:
parent
cb68e5b3bd
commit
5b8e1c26d7
@ -140,7 +140,7 @@ public void execute(CommandLine cmd) throws Exception {
|
||||
.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,
|
||||
|
Loading…
Reference in New Issue
Block a user