hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1515189 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java
Date Sun, 18 Aug 2013 18:06:32 GMT
Author: tedyu
Date: Sun Aug 18 18:06:31 2013
New Revision: 1515189

URL: http://svn.apache.org/r1515189
Log:
HBASE-9023 Addendum makes the wait for flush look for 2 store files


Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java?rev=1515189&r1=1515188&r2=1515189&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java (original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIOFencing.java Sun
Aug 18 18:06:31 2013
@@ -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",



Mime
View raw message