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
Modifier and TypeFieldDescriptionprivate static final byte[]
static final HBaseClassTestRule
private static org.apache.hadoop.hbase.client.AsyncConnectionImpl
private static final int
private static final byte[]
private static org.apache.hadoop.hbase.client.RegionInfo
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertResult
(int row, org.apache.hadoop.hbase.client.Result result) 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) static void
setUp()
static void
tearDown()
void
test()
-
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.ServiceException
IOException
-