HDFS-11526. Fix confusing block recovery message. Contributed by Yiqun Lin.
This commit is contained in:
parent
e5f2eedcbf
commit
023b941e3b
|
@ -167,9 +167,8 @@ public class BlockRecoveryWorker {
|
||||||
return;
|
return;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
++errorCount;
|
++errorCount;
|
||||||
InterDatanodeProtocol.LOG.warn(
|
InterDatanodeProtocol.LOG.warn("Failed to recover block (block="
|
||||||
"Failed to obtain replica info for block (=" + block
|
+ block + ", datanode=" + id + ")", e);
|
||||||
+ ") from datanode (=" + id + ")", e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -429,9 +428,8 @@ public class BlockRecoveryWorker {
|
||||||
+ rBlock.getNewGenerationStamp() + " is aborted.", ripE);
|
+ rBlock.getNewGenerationStamp() + " is aborted.", ripE);
|
||||||
return;
|
return;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
InterDatanodeProtocol.LOG.warn(
|
InterDatanodeProtocol.LOG.warn("Failed to recover block (block="
|
||||||
"Failed to obtain replica info for block (=" + block
|
+ block + ", datanode=" + id + ")", e);
|
||||||
+ ") from datanode (=" + id + ")", e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
checkLocations(syncBlocks.size());
|
checkLocations(syncBlocks.size());
|
||||||
|
|
Loading…
Reference in New Issue