HBASE-3674 Treat ChecksumException as we would a ParseException splitting logs; else we replay split on every restart

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1084051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-03-22 02:04:01 +00:00
parent d2ccdeb8dd
commit 53a031f00c
2 changed files with 4 additions and 2 deletions

View File

@ -153,6 +153,8 @@ Release 0.90.2 - Unreleased
HBASE-3664 [replication] Adding a slave when there's none may kill the cluster
HBASE-3671 Split report before we finish parent region open; workaround
till 0.92; Race between split and OPENED processing
HBASE-3674 Treat ChecksumException as we would a ParseException splitting
logs; else we replay split on every restart
IMPROVEMENTS
HBASE-3542 MultiGet methods in Thrift

View File

@ -243,7 +243,7 @@ public class HLogSplitter {
List<Path> corruptedLogs = new ArrayList<Path>();
List<Path> splits = null;
boolean skipErrors = conf.getBoolean("hbase.hlog.split.skip.errors", false);
boolean skipErrors = conf.getBoolean("hbase.hlog.split.skip.errors", true);
splitSize = 0;
@ -276,7 +276,7 @@ public class HLogSplitter {
// If the IOE resulted from bad file format,
// then this problem is idempotent and retrying won't help
if (e.getCause() instanceof ParseException) {
LOG.warn("ParseException from hlog " + logPath + ". continuing");
LOG.warn("Parse exception from hlog " + logPath + ". continuing", e);
processedLogs.add(logPath);
} else {
if (skipErrors) {