HBASE-3015 recovered.edits files not deleted if it only contain edits that have already been flushed; hurts perf for all future opens of the region

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@999046 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-20 18:43:13 +00:00
parent 3a6705b08b
commit 7daffb3a42
2 changed files with 10 additions and 6 deletions

View File

@ -527,6 +527,9 @@ Release 0.21.0 - Unreleased
calls severly impacting performance
(Kannan Muthukkaruppan via Stack)
HBASE-3010 Can't start/stop/start... cluster using new master
HBASE-3015 recovered.edits files not deleted if it only contain edits that
have already been flushed; hurts perf for all future opens of
the region
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -1763,12 +1763,13 @@ public class HRegion implements HeapSize { // , Writable{
if (seqid > minSeqId) {
// Then we added some edits to memory. Flush and cleanup split edit files.
internalFlushcache(null, seqid);
for (Path file: files) {
if (!this.fs.delete(file, false)) {
LOG.error("Failed delete of " + file);
} else {
LOG.debug("Deleted recovered.edits file=" + file);
}
}
// Now delete the content of recovered edits. We're done w/ them.
for (Path file: files) {
if (!this.fs.delete(file, false)) {
LOG.error("Failed delete of " + file);
} else {
LOG.debug("Deleted recovered.edits file=" + file);
}
}
return seqid;