From f5e15dfb11542cfaf04e5327a308b62e0c869144 Mon Sep 17 00:00:00 2001 From: litao Date: Mon, 29 Nov 2021 16:48:10 +0800 Subject: [PATCH] HDFS-16344. Improve DirectoryScanner.Stats#toString (#3695) Reviewed-by: Viraj Jasani Reviewed-by: Ayush Saxena Reviewed-by: Hui Fei (cherry picked from commit 829af89dc4240347675e20df0ce047245f465c7b) --- .../apache/hadoop/hdfs/server/datanode/DirectoryScanner.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java index f2b93b220f..9749097ba1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java @@ -140,7 +140,8 @@ public String toString() { + ", missing metadata files: " + missingMetaFile + ", missing block files: " + missingBlockFile + ", missing blocks in memory: " + missingMemoryBlocks - + ", mismatched blocks: " + mismatchBlocks; + + ", mismatched blocks: " + mismatchBlocks + + ", duplicated blocks: " + duplicateBlocks; } } @@ -355,7 +356,7 @@ private void clear() { } /** - * Main program loop for DirectoryScanner. Runs {@link reconcile()} and + * Main program loop for DirectoryScanner. Runs {@link #reconcile()} and * handles any exceptions. */ @Override