hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1556040 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java
Date Mon, 06 Jan 2014 21:31:28 GMT
Author: tedyu
Date: Mon Jan  6 21:31:28 2014
New Revision: 1556040

URL: http://svn.apache.org/r1556040
Log:
HBASE-10130 TestSplitLogManager#testTaskResigned fails sometimes


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

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java?rev=1556040&r1=1556039&r2=1556040&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestSplitLogManager.java
Mon Jan  6 21:31:28 2014
@@ -381,10 +381,10 @@ public class TestSplitLogManager {
     ZKUtil.setData(zkw, tasknode, slt.toByteArray());
     int version = ZKUtil.checkExists(zkw, tasknode);
     // Could be small race here.
-    if (tot_mgr_resubmit.get() == 0) waitForCounter(tot_mgr_resubmit, 0, 1, to/2);
+    if (tot_mgr_resubmit.get() == 0) {
+      waitForCounter(tot_mgr_resubmit, 0, 1, to/2);
+    }
     assertEquals(tot_mgr_resubmit.get(), 1);
-    int version1 = ZKUtil.checkExists(zkw, tasknode);
-    assertTrue("version1=" + version1 + ", version=" + version, version1 > version);
 
     byte[] taskstate = ZKUtil.getData(zkw, tasknode);
     slt = SplitLogTask.parseFrom(taskstate);



Mime
View raw message