HDFS-9761. Rebalancer sleeps too long between iterations. Contributed by Mingliang Liu.

(cherry picked from commit c6497949e8)
This commit is contained in:
cnauroth 2016-02-05 15:07:43 -08:00
parent 5752df2362
commit a7232f5e1d
2 changed files with 6 additions and 4 deletions

View File

@ -1797,6 +1797,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9601. NNThroughputBenchmark.BlockReportStats should handle
NotReplicatedYetException on adding block (iwasakims)
HDFS-9761. Rebalancer sleeps too long between iterations
(Mingliang Liu via cnauroth)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -673,14 +673,13 @@ public class Balancer {
// must be an error statue, return.
return r.exitStatus.getExitCode();
}
if (!done) {
Thread.sleep(sleeptime);
}
} else {
LOG.info("Skipping blockpool " + nnc.getBlockpoolID());
}
}
if (!done) {
Thread.sleep(sleeptime);
}
}
} finally {
for(NameNodeConnector nnc : connectors) {