HBASE-7954 Fix the retrying logic of memstore flushes to avoid extra sleep

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1519010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-08-30 16:11:37 +00:00
parent 92e20f9f49
commit db28d97206
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ public class HStore implements Store {
LOG.warn("Failed flushing store file, retring num=" + i, e); LOG.warn("Failed flushing store file, retring num=" + i, e);
lastException = e; lastException = e;
} }
if (lastException != null) { if (lastException != null && i < (flushRetriesNumber - 1)) {
try { try {
Thread.sleep(pauseTime); Thread.sleep(pauseTime);
} catch (InterruptedException e) { } catch (InterruptedException e) {