Package org.apache.hadoop.hbase.ipc
Class TestServerCall
java.lang.Object
org.apache.hadoop.hbase.ipc.TestServerCall
Test for ServerCall IOException handling in setResponse method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.conf.Configurationprivate org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeaderprivate InetAddressprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.io.ByteBuffAllocatorprivate org.apache.hadoop.hbase.ipc.CellBlockBuilderprivate org.apache.hadoop.hbase.ipc.NettyServerRpcConnectionprivate org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptorprivate org.apache.hbase.thirdparty.com.google.protobuf.Messageprivate org.apache.hbase.thirdparty.com.google.protobuf.BlockingService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidTest normal response creation to ensure our changes don't break the normal flow.voidTest the case where both normal response creation and error response creation fail with IOException.voidTest that when IOException occurs during response creation in setResponse, an error response is created and sent to the client instead of leaving the response as null.
-
Field Details
-
CLASS_RULE
-
LOG
-
conf
-
mockConnection
-
header
-
mockParam
-
mockAllocator
-
mockCellBlockBuilder
-
lbAddr
-
mockService
-
mockMethodDescriptor
private org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor mockMethodDescriptor
-
-
Constructor Details
-
TestServerCall
public TestServerCall()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testSetResponseWithIOException
Test that when IOException occurs during response creation in setResponse, an error response is created and sent to the client instead of leaving the response as null.- Throws:
Exception
-
testSetResponseWithDoubleIOException
Test the case where both normal response creation and error response creation fail with IOException.- Throws:
Exception
-
testSetResponseNormalFlow
Test normal response creation to ensure our changes don't break the normal flow.- Throws:
Exception
-