Package org.apache.hadoop.hbase.ipc
Class TestNettyChannelWritability
java.lang.Object
org.apache.hadoop.hbase.ipc.TestNettyChannelWritability
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.KeyValueprivate static final byte[]static final HBaseClassTestRuleprivate static final MetricsAssertHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.NettyRpcServercreateRpcServer(org.apache.hadoop.conf.Configuration conf, int flushAfter) private voidsendAndReceive(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.NettyRpcServer rpcServer, int requestCount) private voidsendMessage(List<org.apache.hadoop.hbase.Cell> cells, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub) voidTest that our fatal watermark is honored, which requires artificially causing some queueing so that pendingOutboundBytes increases.voidTest that we properly send configured watermarks to netty, and trigger setWritable when necessary.
- 
Field Details- 
CLASS_RULE
- 
METRICS_ASSERT
- 
CELL_BYTES
- 
CELL
 
- 
- 
Constructor Details- 
TestNettyChannelWritabilitypublic TestNettyChannelWritability()
 
- 
- 
Method Details- 
testNettyWritableWatermarksTest that we properly send configured watermarks to netty, and trigger setWritable when necessary.- Throws:
- Exception
 
- 
testNettyWritableFatalThresholdTest that our fatal watermark is honored, which requires artificially causing some queueing so that pendingOutboundBytes increases.- Throws:
- Exception
 
- 
sendAndReceiveprivate void sendAndReceive(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.ipc.NettyRpcServer rpcServer, int requestCount) throws Exception - Throws:
- Exception
 
- 
sendMessageprivate void sendMessage(List<org.apache.hadoop.hbase.Cell> cells, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface stub) throws Exception - Throws:
- Exception
 
- 
createRpcServerprivate org.apache.hadoop.hbase.ipc.NettyRpcServer createRpcServer(org.apache.hadoop.conf.Configuration conf, int flushAfter) throws IOException - Throws:
- IOException
 
 
-