public abstract class AbstractTestIPC extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.KeyValue |
CELL |
private static byte[] |
CELL_BYTES |
protected static org.apache.hadoop.conf.Configuration |
CONF |
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AbstractTestIPC() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> |
createRpcClient(org.apache.hadoop.conf.Configuration conf) |
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> |
createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf) |
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> |
createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) |
protected abstract org.apache.hadoop.hbase.ipc.RpcServer |
createRpcServer(org.apache.hadoop.hbase.Server server,
String name,
List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services,
InetSocketAddress bindAddress,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) |
protected abstract org.apache.hadoop.hbase.ipc.RpcServer |
createTestFailingRpcServer(org.apache.hadoop.hbase.Server server,
String name,
List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services,
InetSocketAddress bindAddress,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) |
void |
testAsyncEcho() |
void |
testAsyncRemoteError() |
void |
testAsyncTimeout() |
void |
testCompressCellBlock()
It is hard to verify the compression is actually happening under the wraps.
|
void |
testConnectionCloseWithOutstandingRPCs()
Tests that the connection closing is handled by the client with outstanding RPC calls
|
void |
testNoCodec()
Ensure we do not HAVE TO HAVE a codec.
|
void |
testRemoteError() |
void |
testRpcMaxRequestSize()
Tests that the rpc scheduler is called when requests arrive.
|
void |
testRpcScheduler()
Tests that the rpc scheduler is called when requests arrive.
|
void |
testRpcServerForNotNullRemoteAddressInCallObject()
Tests that the RpcServer creates & dispatches CallRunner object to scheduler with non-null
remoteAddress set to its Call Object
|
void |
testRTEDuringConnectionSetup() |
void |
testTimeout() |
private static final org.slf4j.Logger LOG
private static final byte[] CELL_BYTES
private static final org.apache.hadoop.hbase.KeyValue CELL
protected static final org.apache.hadoop.conf.Configuration CONF
public AbstractTestIPC()
protected abstract org.apache.hadoop.hbase.ipc.RpcServer createRpcServer(org.apache.hadoop.hbase.Server server, String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) throws IOException
IOException
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf)
public void testNoCodec() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClient(org.apache.hadoop.conf.Configuration conf)
public void testCompressCellBlock() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
protected abstract org.apache.hadoop.hbase.ipc.AbstractRpcClient<?> createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void testRTEDuringConnectionSetup() throws Exception
Exception
public void testRpcScheduler() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, InterruptedException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
InterruptedException
public void testRpcMaxRequestSize() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public void testRpcServerForNotNullRemoteAddressInCallObject() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public void testRemoteError() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
public void testTimeout() throws IOException
IOException
protected abstract org.apache.hadoop.hbase.ipc.RpcServer createTestFailingRpcServer(org.apache.hadoop.hbase.Server server, String name, List<org.apache.hadoop.hbase.ipc.RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) throws IOException
IOException
public void testConnectionCloseWithOutstandingRPCs() throws InterruptedException, IOException
InterruptedException
IOException
public void testAsyncEcho() throws IOException
IOException
public void testAsyncRemoteError() throws IOException
IOException
public void testAsyncTimeout() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.