HBASE-3740 hbck doesn't reset the number of errors when retrying

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1090488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2011-04-08 23:16:04 +00:00
parent 2ed9853572
commit a2b2a752b3
2 changed files with 8 additions and 0 deletions

View File

@ -182,6 +182,7 @@ Release 0.90.3 - Unreleased
DistributedFileSystem (todd)
HBASE-3734 HBaseAdmin creates new configurations in getCatalogTracker
HBASE-3756 Can't move META or ROOT from shell
HBASE-3740 hbck doesn't reset the number of errors when retrying
IMPROVEMENTS

View File

@ -805,6 +805,7 @@ public class HBaseFsck {
public void detail(String details);
public void progress();
public void print(String message);
public void resetErrors();
}
private static class PrintingErrorReporter implements ErrorReporter {
@ -837,6 +838,11 @@ public class HBaseFsck {
}
}
@Override
public void resetErrors() {
errorCount = 0;
}
public synchronized void detail(String message) {
if (details) {
System.out.println(message);
@ -1120,6 +1126,7 @@ public class HBaseFsck {
}
// Just report
fsck.setFixErrors(false);
fsck.errors.resetErrors();
code = fsck.doWork();
}