HBASE-6697 regionserver.TestPriorityRpc uses a fixed port (60020)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1379715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2012-09-01 08:11:36 +00:00
parent 46349a89d9
commit 55fb6632b9
2 changed files with 20 additions and 3 deletions

View File

@ -25,9 +25,10 @@ import static org.junit.Assert.*;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.SmallTests;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetOnlineRegionRequest;
import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get;
import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest;
@ -45,14 +46,15 @@ import com.google.protobuf.ByteString;
/**
* Tests that verify certain RPCs get a higher QoS.
*/
@Category(SmallTests.class)
@Category(MediumTests.class)
public class TestPriorityRpc {
static HRegionServer regionServer = null;
static QosFunction qosFunction = null;
@BeforeClass
public static void onetimeSetup() {
Configuration conf = HBaseConfiguration.create();
regionServer =
HRegionServer.constructRegionServer(HRegionServer.class, new Configuration());
HRegionServer.constructRegionServer(HRegionServer.class, conf);
qosFunction = regionServer.getQosFunction();
}
@Test

View File

@ -77,6 +77,21 @@
Set to -1 if you do not want the info server to run.
</description>
</property>
<property>
<name>hbase.master.port</name>
<value>0</value>
<description>Always have masters and regionservers come up on port '0' so we don't clash over
default ports.
</description>
</property>
<property>
<name>hbase.regionserver.port</name>
<value>0</value>
<description>Always have masters and regionservers come up on port '0' so we don't clash over
default ports.
</description>
</property>
<property>
<name>hbase.regionserver.info.port</name>
<value>-1</value>