hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1205872 - in /hbase/trunk: CHANGES.txt src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java
Date Thu, 24 Nov 2011 15:17:38 GMT
Author: tedyu
Date: Thu Nov 24 15:17:38 2011
New Revision: 1205872

URL: http://svn.apache.org/viewvc?rev=1205872&view=rev
Log:
HBASE-4864  TestMasterObserver#testRegionTransitionOperations occasionally
               fails (Gao Jinchao)

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1205872&r1=1205871&r2=1205872&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Nov 24 15:17:38 2011
@@ -457,6 +457,8 @@ Release 0.92.0 - Unreleased
                TestHCM.testConnectionUniqueness (Jinchao)
    HBASE-4518  TestServerCustomProtocol fails intermittently
    HBASE-4790  Occasional TestDistributedLogSplitting failure (Jinchao)
+   HBASE-4864  TestMasterObserver#testRegionTransitionOperations occasionally
+               fails (Gao Jinchao)
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java?rev=1205872&r1=1205871&r2=1205872&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java
(original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/coprocessor/TestMasterObserver.java
Thu Nov 24 15:17:38 2011
@@ -639,7 +639,9 @@ public class TestMasterObserver {
     cp.resetStates();
 
     HTable table = UTIL.createTable(TEST_TABLE, TEST_FAMILY);
-    UTIL.createMultiRegions(table, TEST_FAMILY);
+    int countOfRegions = UTIL.createMultiRegions(table, TEST_FAMILY);
+    UTIL.waitUntilAllRegionsAssigned(countOfRegions);
+    
     NavigableMap<HRegionInfo, ServerName> regions = table.getRegionLocations();
     Map.Entry<HRegionInfo, ServerName> firstGoodPair = null;
     for (Map.Entry<HRegionInfo, ServerName> e: regions.entrySet()) {



Mime
View raw message