Skip to content

Commit 2fe1142

Browse files
tomscutHarshitGupta11
authored andcommitted
HDFS-16344. Improve DirectoryScanner.Stats#toString (apache#3695)
Reviewed-by: Viraj Jasani <vjasani@apache.org> Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Reviewed-by: Hui Fei <ferhui@apache.org>
1 parent 9cbebcc commit 2fe1142

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
@@ -141,7 +141,8 @@ public String toString() {
141141
+ ", missing metadata files: " + missingMetaFile
142142
+ ", missing block files: " + missingBlockFile
143143
+ ", missing blocks in memory: " + missingMemoryBlocks
144-
+ ", mismatched blocks: " + mismatchBlocks;
144+
+ ", mismatched blocks: " + mismatchBlocks
145+
+ ", duplicated blocks: " + duplicateBlocks;
145146
}
146147
}
147148

@@ -391,7 +392,7 @@ private void clear() {
391392
}
392393

393394
/**
394-
* Main program loop for DirectoryScanner. Runs {@link reconcile()} and
395+
* Main program loop for DirectoryScanner. Runs {@link #reconcile()} and
395396
* handles any exceptions.
396397
*/
397398
@Override

0 commit comments

Comments
 (0)