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

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@958265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-06-26 18:23:12 +00:00
parent 7353c3dc0a
commit 5d71084915
1 changed files with 7 additions and 1 deletions

View File

@ -18,9 +18,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.hadoop.hbase.master; package org.apache.hadoop.hbase.master;
import static org.junit.Assert.*;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.hadoop.conf.Configuration; 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.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@ -47,6 +51,8 @@ public class TestRegionServerOperationQueue {
} }
@Test @Test
public void testNothing() throws Exception { public void testWeDoNotGetStuckInDelayQueue() throws Exception {
ProcessingResultCode code = this.queue.process();
assertTrue(ProcessingResultCode.NOOP == code);
} }
} }