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

(cherry picked from commit 9cbbd1eae8)
This commit is contained in:
Yiqun Lin 2017-02-06 13:15:16 +08:00
parent b7d59e790b
commit 26bed5ce53
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,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
@ -1015,6 +1014,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;
}