HDFS-9434. Recommission a datanode with 500k blocks may pause NN for 30 seconds for printing info log messags.

This commit is contained in:
Tsz-Wo Nicholas Sze 2015-11-19 14:54:01 -08:00
parent 0664782025
commit bf82a8de30
2 changed files with 6 additions and 5 deletions

View File

@ -1474,6 +1474,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9400. TestRollingUpgradeRollback fails on branch-2.
(Brahma Reddy Battula via cnauroth)
HDFS-9434. Recommission a datanode with 500k blocks may pause NN for 30
seconds for printing info log messags. (szetszwo)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -2926,11 +2926,9 @@ public class BlockManager implements BlockStatsMXBean {
for(DatanodeStorageInfo storage : blocksMap.getStorages(block, State.NORMAL)) {
final DatanodeDescriptor cur = storage.getDatanodeDescriptor();
if (storage.areBlockContentsStale()) {
LOG.info("BLOCK* processOverReplicatedBlock: " +
"Postponing processing of over-replicated " +
block + " since storage + " + storage
+ "datanode " + cur + " does not yet have up-to-date " +
"block information.");
LOG.trace("BLOCK* processOverReplicatedBlock: Postponing {}"
+ " since storage {} does not yet have up-to-date information.",
block, storage);
postponeBlock(block);
return;
}