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:
parent
46349a89d9
commit
55fb6632b9
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue