hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r956716 - in /hbase/trunk: CHANGES.txt src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
Date Mon, 21 Jun 2010 22:01:26 GMT
Author: todd
Date: Mon Jun 21 22:01:25 2010
New Revision: 956716

URL: http://svn.apache.org/viewvc?rev=956716&view=rev
Log:
HBASE-2757. Fix flaky TestFromClientSide test by forcing region assignment

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=956716&r1=956715&r2=956716&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Mon Jun 21 22:01:25 2010
@@ -403,6 +403,7 @@ Release 0.21.0 - Unreleased
    HBASE-2760  Fix MetaScanner TableNotFoundException when scanning starting at
                the first row in a table.
    HBASE-1025  Reconstruction log playback has no bounds on memory used
+   HBASE-2757  Fix flaky TestFromClientSide test by forcing region assignment
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java?rev=956716&r1=956715&r2=956716&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java Mon Jun
21 22:01:25 2010
@@ -3637,7 +3637,13 @@ public class TestFromClientSide {
 
     // create many regions for the table.
     TEST_UTIL.createMultiRegions(table, FAMILY);
-
+    // This count effectively waits until the regions have been
+    // fully assigned
+    TEST_UTIL.countRows(table);
+    table.getConnection().clearRegionCache();
+    assertEquals("Clearing cache should have 0 cached ", 0,
+        HConnectionManager.getCachedRegionCount(conf, TABLENAME));
+    
     // A Get is suppose to do a region lookup request
     Get g = new Get(Bytes.toBytes("aaa"));
     table.get(g);



Mime
View raw message