HDFS-11377. Balancer hung due to no available mover threads. Contributed by yunjiong zhao.

(cherry picked from commit 9cbbd1eae893b21212c9bc9e6745c6859317a667)
This commit is contained in:
Yiqun Lin 2017-02-06 13:15:16 +08:00 committed by Konstantin V Shvachko
parent 836e8f3e69
commit 94a80974d3

View File

@ -86,7 +86,6 @@
public class Dispatcher {
static final Log LOG = LogFactory.getLog(Dispatcher.class);
private static final int MAX_NO_PENDING_MOVE_ITERATIONS = 5;
/**
* the period of time to delay the usage of a DataNode after hitting
* errors when using it for migrating data
@ -1032,6 +1031,8 @@ public void executePendingMove(final PendingMove p) {
}
if (moveExecutor == null) {
LOG.warn("No mover threads available: skip moving " + p);
targetDn.removePendingBlock(p);
p.proxySource.removePendingBlock(p);
return;
}