You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ns...@apache.org on 2011/10/11 04:24:10 UTC

svn commit: r1181598 - /hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java

Author: nspiegelberg
Date: Tue Oct 11 02:24:10 2011
New Revision: 1181598

URL: http://svn.apache.org/viewvc?rev=1181598&view=rev
Log:
Increase sleep times on unit tests for async operations.

Summary:
A few unit tests in TestFromClientSide.java used to sleep for a
while after async operations. Due to the sleep duration being small, at
times the unit tests would fail as a result of the async operations not
completing for the duration of the sleep.

Test Plan: 1) Run unit tests
Reviewed By: kannan
Reviewers: kannan
CC: riley, , hbase@lists, kannan
Revert Plan:
Tags:

- begin *PUBLIC* platform impact section -
Bugzilla: #
- end platform impact -

Differential Revision: 278758

Modified:
    hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java

Modified: hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java?rev=1181598&r1=1181597&r2=1181598&view=diff
==============================================================================
--- hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java (original)
+++ hbase/branches/0.89/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java Tue Oct 11 02:24:10 2011
@@ -3970,7 +3970,7 @@ public class TestFromClientSide {
     } else {
       admin.compact(TABLE, FAMILY);
     }
-    Thread.sleep(6000);
+    Thread.sleep(10000);
 
     // The number of store files after compaction should be lesser.
     it1 = map.entrySet().iterator();
@@ -4018,7 +4018,7 @@ public class TestFromClientSide {
     } else {
       admin.compact(regionName, FAMILY);
     }
-    Thread.sleep(6000);
+    Thread.sleep(10000);
 
     // The number of store files after compaction should be lesser.
     int afterCompaction = server.getStoreFileList(regionName, FAMILY).size();
@@ -4067,7 +4067,7 @@ public class TestFromClientSide {
       admin.compact(regionName, family1);
       admin.compact(regionName, family2);
     }
-    Thread.sleep(6000);
+    Thread.sleep(10000);
 
     // The number of store files after compaction should be lesser.
     int afterCompactionF1 = server.getStoreFileList(regionName, family1).size();