Class TestServerCall

java.lang.Object
org.apache.hadoop.hbase.ipc.TestServerCall

@Tag("org.apache.hadoop.hbase.testclassification.RPCTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestServerCall extends Object
Test for ServerCall IOException handling in setResponse method.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.conf.Configuration
     
    private org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.RequestHeader
     
    private InetAddress
     
    private static final org.slf4j.Logger
     
    private org.apache.hadoop.hbase.io.ByteBuffAllocator
     
    private org.apache.hadoop.hbase.ipc.CellBlockBuilder
     
    private org.apache.hadoop.hbase.ipc.NettyServerRpcConnection
     
    private org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor
     
    private org.apache.hbase.thirdparty.com.google.protobuf.Message
     
    private org.apache.hbase.thirdparty.com.google.protobuf.BlockingService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Test normal response creation to ensure our changes don't break the normal flow.
    void
    Test the case where both normal response creation and error response creation fail with IOException.
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • conf

      private org.apache.hadoop.conf.Configuration conf
    • mockConnection

      private org.apache.hadoop.hbase.ipc.NettyServerRpcConnection mockConnection
    • mockParam

      private org.apache.hbase.thirdparty.com.google.protobuf.Message mockParam
    • mockAllocator

      private org.apache.hadoop.hbase.io.ByteBuffAllocator mockAllocator
    • mockCellBlockBuilder

      private org.apache.hadoop.hbase.ipc.CellBlockBuilder mockCellBlockBuilder
    • lbAddr

    • mockService

      private org.apache.hbase.thirdparty.com.google.protobuf.BlockingService mockService
    • mockMethodDescriptor

      private org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor mockMethodDescriptor
  • Constructor Details

  • Method Details