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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.client.Connection
org.junit.rules.TestName
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.HBaseRpcController
assertControllerArgs
(int priority) private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest
private void
mockScan
(int scanPriority) void
setUp()
private void
testForTable
(org.apache.hadoop.hbase.TableName tableName, Optional<Integer> priority) void
testScan()
void
void
void
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.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:
IOException
org.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()
-