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 2946621a53
commit 09f4a4eefd
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,8 @@
Hadoop HDFS Change Log Hadoop HDFS Change Log
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 Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

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