HBASE-9023 Addendum makes the wait for flush look for 2 store files
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1515189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dec9876d5f
commit
f06592a1ab
|
@ -255,7 +255,8 @@ public class TestIOFencing {
|
|||
|
||||
// Wait till flush has happened, otherwise there won't be multiple store files
|
||||
long startWaitTime = System.currentTimeMillis();
|
||||
while (compactingRegion.getLastFlushTime() <= lastFlushTime) {
|
||||
while (compactingRegion.getLastFlushTime() <= lastFlushTime ||
|
||||
compactingRegion.countStoreFiles() <= 1) {
|
||||
LOG.info("Waiting for the region to flush " + compactingRegion.getRegionNameAsString());
|
||||
Thread.sleep(1000);
|
||||
assertTrue("Timed out waiting for the region to flush",
|
||||
|
|
Loading…
Reference in New Issue