hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1466207 - /hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java
Date Tue, 09 Apr 2013 20:16:09 GMT
Author: tedyu
Date: Tue Apr  9 20:16:08 2013
New Revision: 1466207

URL: http://svn.apache.org/r1466207
Log:
HBASE-8308 Lower the number of expected regions in TestTableLockManager#testTableReadLock
(Ted Yu)


Modified:
    hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java

Modified: hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java?rev=1466207&r1=1466206&r2=1466207&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java
(original)
+++ hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestTableLockManager.java
Tue Apr  9 20:16:08 2013
@@ -304,7 +304,7 @@ public class TestTableLockManager {
   public void testTableReadLock() throws Exception {
     // test plan: write some data to the table. Continuously alter the table and
     // force splits
-    // concurrently until we have 10 regions. verify the data just in case.
+    // concurrently until we have 6 regions. verify the data just in case.
     // Every region should contain the same table descriptor
     // This is not an exact test
     prepareMiniCluster();
@@ -384,7 +384,7 @@ public class TestTableLockManager {
       for (HRegion region : TEST_UTIL.getMiniHBaseCluster().getRegions(tableName)) {
         assertEquals(desc, region.getTableDesc());
       }
-      if (regions.size() >= 10) {
+      if (regions.size() >= 6) {
         break;
       }
       Threads.sleep(1000);



Mime
View raw message