HDFS-11526. Fix confusing block recovery message. Contributed by Yiqun Lin.

This commit is contained in:
Yiqun Lin 2017-03-14 17:49:48 +08:00
parent e5f2eedcbf
commit 023b941e3b
1 changed files with 4 additions and 6 deletions

View File

@ -167,9 +167,8 @@ public class BlockRecoveryWorker {
return;
} catch (IOException e) {
++errorCount;
InterDatanodeProtocol.LOG.warn(
"Failed to obtain replica info for block (=" + block
+ ") from datanode (=" + id + ")", e);
InterDatanodeProtocol.LOG.warn("Failed to recover block (block="
+ block + ", datanode=" + id + ")", e);
}
}
@ -429,9 +428,8 @@ public class BlockRecoveryWorker {
+ rBlock.getNewGenerationStamp() + " is aborted.", ripE);
return;
} catch (IOException e) {
InterDatanodeProtocol.LOG.warn(
"Failed to obtain replica info for block (=" + block
+ ") from datanode (=" + id + ")", e);
InterDatanodeProtocol.LOG.warn("Failed to recover block (block="
+ block + ", datanode=" + id + ")", e);
}
}
checkLocations(syncBlocks.size());