Package org.apache.hadoop.hbase.client
Class TestTableRpcPriority
java.lang.Object
org.apache.hadoop.hbase.client.TestTableRpcPriority
Test that correct rpc priority is sent to server from blocking Table calls. Currently only
 implements checks for scans, but more could be added here.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.client.Connectionorg.junit.rules.TestNameprivate org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.HBaseRpcControllerassertControllerArgs(int priority) private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequestprivate voidmockScan(int scanPriority) voidsetUp()private voidtestForTable(org.apache.hadoop.hbase.TableName tableName, Optional<Integer> priority) voidtestScan()voidvoidvoidThis test verifies that our closeScanner request honors the original priority of the scan if it's greater than our expected HIGH_QOS for close calls.void 
- 
Field Details
- 
CLASS_RULE
 - 
name
 - 
stub
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface stub - 
conn
 
 - 
 - 
Constructor Details
- 
TestTableRpcPriority
public TestTableRpcPriority() 
 - 
 - 
Method Details
- 
setUp
public void setUp() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException- Throws:
 IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceException
 - 
testScan
- Throws:
 Exception
 - 
testScanSuperHighPriority
This test verifies that our closeScanner request honors the original priority of the scan if it's greater than our expected HIGH_QOS for close calls.- Throws:
 Exception
 - 
testScanNormalTable
- Throws:
 Exception
 - 
testScanSystemTable
- Throws:
 Exception
 - 
testScanMetaTable
- Throws:
 Exception
 - 
testForTable
private void testForTable(org.apache.hadoop.hbase.TableName tableName, Optional<Integer> priority) throws Exception - Throws:
 Exception
 - 
mockScan
private void mockScan(int scanPriority) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
 org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
 - 
assertControllerArgs
 - 
assertScannerCloseRequest
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest assertScannerCloseRequest() 
 -