HDFS-12642. Log block and datanode details in BlockRecoveryWorker.
This commit is contained in:
parent
7bd700941d
commit
21bc855587
|
@ -197,10 +197,9 @@ public class BlockRecoveryWorker {
|
|||
long blockId = (isTruncateRecovery) ?
|
||||
rBlock.getNewBlock().getBlockId() : block.getBlockId();
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("block=" + block + ", (length=" + block.getNumBytes()
|
||||
+ "), syncList=" + syncList);
|
||||
}
|
||||
LOG.info("BlockRecoveryWorker: block={} (length={}),"
|
||||
+ " isTruncateRecovery={}, syncList={}", block,
|
||||
block.getNumBytes(), isTruncateRecovery, syncList);
|
||||
|
||||
// syncList.isEmpty() means that all data-nodes do not have the block
|
||||
// or their replicas have 0 length.
|
||||
|
@ -289,6 +288,11 @@ public class BlockRecoveryWorker {
|
|||
newBlock.setNumBytes(rBlock.getNewBlock().getNumBytes());
|
||||
}
|
||||
|
||||
LOG.info("BlockRecoveryWorker: block={} (length={}), bestState={},"
|
||||
+ " newBlock={} (length={}), participatingList={}",
|
||||
block, block.getNumBytes(), bestState.name(), newBlock,
|
||||
newBlock.getNumBytes(), participatingList);
|
||||
|
||||
List<DatanodeID> failedList = new ArrayList<>();
|
||||
final List<BlockRecord> successList = new ArrayList<>();
|
||||
for (BlockRecord r : participatingList) {
|
||||
|
@ -542,7 +546,7 @@ public class BlockRecoveryWorker {
|
|||
ExtendedBlock block = rb.getBlock();
|
||||
DatanodeInfo[] targets = rb.getLocations();
|
||||
|
||||
LOG.info(who + " calls recoverBlock(" + block
|
||||
LOG.info("BlockRecoveryWorker: " + who + " calls recoverBlock(" + block
|
||||
+ ", targets=[" + Joiner.on(", ").join(targets) + "]"
|
||||
+ ", newGenerationStamp=" + rb.getNewGenerationStamp()
|
||||
+ ", newBlock=" + rb.getNewBlock()
|
||||
|
|
Loading…
Reference in New Issue