HDFS-15381. Fix typos corrputBlocksFiles to corruptBlocksFiles. Contributed by bianqi.

This commit is contained in:
Ayush Saxena 2020-07-20 21:49:05 +05:30
parent bb459d4dd6
commit 6cbd8854ee

View File

@ -479,10 +479,10 @@ public void fsck() {
}
private void listCorruptFileBlocks() throws IOException {
final List<String> corrputBlocksFiles = namenode.getNamesystem()
final List<String> corruptBlocksFiles = namenode.getNamesystem()
.listCorruptFileBlocksWithSnapshot(path, snapshottableDirs,
currentCookie);
int numCorruptFiles = corrputBlocksFiles.size();
int numCorruptFiles = corruptBlocksFiles.size();
String filler;
if (numCorruptFiles > 0) {
filler = Integer.toString(numCorruptFiles);
@ -492,7 +492,7 @@ private void listCorruptFileBlocks() throws IOException {
filler = "no more";
}
out.println("Cookie:\t" + currentCookie[0]);
for (String s : corrputBlocksFiles) {
for (String s : corruptBlocksFiles) {
out.println(s);
}
out.println("\n\nThe filesystem under path '" + path + "' has " + filler