Skip to content

Commit 1a918a6

Browse files
HDFS-17047. BlockManager#addStoredBlock should log storage id when AddBlockResult is REPLACED (#5742). Contributed by farmmamba.
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
1 parent ab47a65 commit 1a918a6

File tree

1 file changed

+2
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3645,7 +3645,8 @@ private Block addStoredBlock(final BlockInfo block,
36453645
} else if (result == AddBlockResult.REPLACED) {
36463646
curReplicaDelta = 0;
36473647
blockLog.warn("BLOCK* addStoredBlock: block {} moved to storageType " +
3648-
"{} on node {}", reportedBlock, storageInfo.getStorageType(), node);
3648+
"{} on node {} storageId {}, reportedBlock is {}", reportedBlock,
3649+
storageInfo.getStorageType(), node, storageInfo.getStorageID(), reportedBlock);
36493650
} else {
36503651
// if the same block is added again and the replica was corrupt
36513652
// previously because of a wrong gen stamp, remove it from the

0 commit comments

Comments
 (0)