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:
hfutatzhanghb 2023-06-15 02:54:22 +08:00 committed by GitHub
parent ab47a658bd
commit 1a918a6b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3645,7 +3645,8 @@ private Block addStoredBlock(final BlockInfo block,
} else if (result == AddBlockResult.REPLACED) {
curReplicaDelta = 0;
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 {
// if the same block is added again and the replica was corrupt
// previously because of a wrong gen stamp, remove it from the