hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r958265 - /hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java
Date Sat, 26 Jun 2010 18:23:12 GMT
Author: stack
Date: Sat Jun 26 18:23:12 2010
New Revision: 958265

URL: http://svn.apache.org/viewvc?rev=958265&view=rev
Log:
HBASE-2795 On review HBASE-2707 has problem in that we'll get stuck in the delay queue and
never come out; commit test which proves this issue invalid

Modified:
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java?rev=958265&r1=958264&r2=958265&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java
(original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRegionServerOperationQueue.java
Sat Jun 26 18:23:12 2010
@@ -18,9 +18,13 @@
  * limitations under the License.
  */
 package org.apache.hadoop.hbase.master;
+import static org.junit.Assert.*;
+
 import java.util.concurrent.atomic.AtomicBoolean;
 
 import org.apache.hadoop.conf.Configuration;
+import org.apache.hadoop.hbase.HBaseConfiguration;
+import org.apache.hadoop.hbase.master.RegionServerOperationQueue.ProcessingResultCode;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -47,6 +51,8 @@ public class TestRegionServerOperationQu
   }
 
   @Test
-  public void testNothing() throws Exception {
+  public void testWeDoNotGetStuckInDelayQueue() throws Exception {
+    ProcessingResultCode code = this.queue.process();
+    assertTrue(ProcessingResultCode.NOOP == code);
   }
 }



Mime
View raw message