HDFS-17047. BlockManager#addStoredBlock should log storage id when AddBlockResult is REPLACED (#5742). Contributed by farmmamba.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
ab47a658bd
commit
1a918a6b96
@ -3645,7 +3645,8 @@ private Block addStoredBlock(final BlockInfo block,
|
|||||||
} else if (result == AddBlockResult.REPLACED) {
|
} else if (result == AddBlockResult.REPLACED) {
|
||||||
curReplicaDelta = 0;
|
curReplicaDelta = 0;
|
||||||
blockLog.warn("BLOCK* addStoredBlock: block {} moved to storageType " +
|
blockLog.warn("BLOCK* addStoredBlock: block {} moved to storageType " +
|
||||||
"{} on node {}", reportedBlock, storageInfo.getStorageType(), node);
|
"{} on node {} storageId {}, reportedBlock is {}", reportedBlock,
|
||||||
|
storageInfo.getStorageType(), node, storageInfo.getStorageID(), reportedBlock);
|
||||||
} else {
|
} else {
|
||||||
// if the same block is added again and the replica was corrupt
|
// if the same block is added again and the replica was corrupt
|
||||||
// previously because of a wrong gen stamp, remove it from the
|
// previously because of a wrong gen stamp, remove it from the
|
||||||
|
Loading…
Reference in New Issue
Block a user