Package org.apache.hadoop.hbase.client
Class TestScanWithoutFetchingData
java.lang.Object
org.apache.hadoop.hbase.client.TestScanWithoutFetchingData
Testcase to make sure that we do not close scanners if ScanRequest.numberOfRows is zero. See
HBASE-18042 for more details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]static final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.client.AsyncConnectionImplprivate static final intprivate static final byte[]private static org.apache.hadoop.hbase.client.RegionInfoprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interfaceprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertResult(int row, org.apache.hadoop.hbase.client.Result result) private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponsescan(org.apache.hadoop.hbase.ipc.HBaseRpcController hrc, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest req) static voidsetUp()static voidtearDown()voidtest()
-
Field Details
-
CLASS_RULE
-
UTIL
-
TABLE_NAME
-
CF
-
CQ
-
COUNT
- See Also:
-
HRI
-
CONN
-
STUB
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface STUB
-
-
Constructor Details
-
TestScanWithoutFetchingData
public TestScanWithoutFetchingData()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
scan
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse scan(org.apache.hadoop.hbase.ipc.HBaseRpcController hrc, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanRequest req) throws IOException - Throws:
IOException
-
assertResult
-
test
public void test() throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, IOException- Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionIOException
-