HBASE-1243 oldlogfile.dat is screwed, so is it's region
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@751076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f315730de5
commit
c45dc36738
|
@ -38,6 +38,7 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1238 Under upload, region servers are unable
|
||||
to compact when loaded with hundreds of regions
|
||||
HBASE-1247 checkAndSave doesn't Write Ahead Log
|
||||
HBASE-1243 oldlogfile.dat is screwed, so is it's region
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -295,8 +295,15 @@ public class Store implements HConstants {
|
|||
long maxSeqIdInLog = -1;
|
||||
NavigableMap<HStoreKey, byte []> reconstructedCache =
|
||||
new TreeMap<HStoreKey, byte []>(this.comparator);
|
||||
SequenceFile.Reader logReader = new SequenceFile.Reader(this.fs,
|
||||
reconstructionLog, this.conf);
|
||||
SequenceFile.Reader logReader = null;
|
||||
try {
|
||||
logReader = new SequenceFile.Reader(this.fs, reconstructionLog, this.conf);
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Failed opening reconstruction log though check for null-size passed. " +
|
||||
"POSSIBLE DATA LOSS!! Soldiering on", e);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
HLogKey key = new HLogKey();
|
||||
HLogEdit val = new HLogEdit();
|
||||
|
@ -1842,4 +1849,4 @@ public class Store implements HConstants {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue