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:
parent
92e20f9f49
commit
db28d97206
|
@ -727,7 +727,7 @@ public class HStore implements Store {
|
|||
LOG.warn("Failed flushing store file, retring num=" + i, e);
|
||||
lastException = e;
|
||||
}
|
||||
if (lastException != null) {
|
||||
if (lastException != null && i < (flushRetriesNumber - 1)) {
|
||||
try {
|
||||
Thread.sleep(pauseTime);
|
||||
} catch (InterruptedException e) {
|
||||
|
|
Loading…
Reference in New Issue