Package org.apache.hadoop.hbase.ipc
Class TestNettyChannelWritability
java.lang.Object
org.apache.hadoop.hbase.ipc.TestNettyChannelWritability
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.KeyValue
private static final byte[]
static final HBaseClassTestRule
private static final MetricsAssertHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.NettyRpcServer
createRpcServer
(org.apache.hadoop.conf.Configuration conf, int flushAfter) private void
sendAndReceive
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.NettyRpcServer rpcServer, int requestCount) private void
sendMessage
(List<org.apache.hadoop.hbase.ExtendedCell> cells, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub) void
Test that our fatal watermark is honored, which requires artificially causing some queueing so that pendingOutboundBytes increases.void
Test that we properly send configured watermarks to netty, and trigger setWritable when necessary.
-
Field Details
-
CLASS_RULE
-
METRICS_ASSERT
-
CELL_BYTES
-
CELL
-
-
Constructor Details
-
TestNettyChannelWritability
public TestNettyChannelWritability()
-
-
Method Details
-
testNettyWritableWatermarks
Test that we properly send configured watermarks to netty, and trigger setWritable when necessary.- Throws:
Exception
-
testNettyWritableFatalThreshold
Test that our fatal watermark is honored, which requires artificially causing some queueing so that pendingOutboundBytes increases.- Throws:
Exception
-
sendAndReceive
private void sendAndReceive(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.NettyRpcServer rpcServer, int requestCount) throws Exception - Throws:
Exception
-
sendMessage
private void sendMessage(List<org.apache.hadoop.hbase.ExtendedCell> cells, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub) throws Exception - Throws:
Exception
-
createRpcServer
private org.apache.hadoop.hbase.ipc.NettyRpcServer createRpcServer(org.apache.hadoop.conf.Configuration conf, int flushAfter) throws IOException - Throws:
IOException
-