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:
Zhihong Yu 2013-08-18 18:06:31 +00:00
parent dec9876d5f
commit f06592a1ab
1 changed files with 2 additions and 1 deletions

View File

@ -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",