Skip to content

Commit f5e15df

Browse files
tomscuttasanuma
authored andcommitted
HDFS-16344. Improve DirectoryScanner.Stats#toString (#3695)
Reviewed-by: Viraj Jasani <vjasani@apache.org> Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Reviewed-by: Hui Fei <ferhui@apache.org> (cherry picked from commit 829af89)
1 parent b428d53 commit f5e15df

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public String toString() {
140140
+ ", missing metadata files: " + missingMetaFile
141141
+ ", missing block files: " + missingBlockFile
142142
+ ", missing blocks in memory: " + missingMemoryBlocks
143-
+ ", mismatched blocks: " + mismatchBlocks;
143+
+ ", mismatched blocks: " + mismatchBlocks
144+
+ ", duplicated blocks: " + duplicateBlocks;
144145
}
145146
}
146147

@@ -355,7 +356,7 @@ private void clear() {
355356
}
356357

357358
/**
358-
* Main program loop for DirectoryScanner. Runs {@link reconcile()} and
359+
* Main program loop for DirectoryScanner. Runs {@link #reconcile()} and
359360
* handles any exceptions.
360361
*/
361362
@Override

0 commit comments

Comments
 (0)