Class TestRegionLocatorPagedScanRpcCount

java.lang.Object
org.apache.hadoop.hbase.client.TestRegionLocatorPagedScanRpcCount

@Tag("org.apache.hadoop.hbase.testclassification.MediumTests") @Tag("org.apache.hadoop.hbase.testclassification.ClientTests") public class TestRegionLocatorPagedScanRpcCount extends Object
Asserts the single-RPC promise of the paginated meta-scan path (ClientMetaTableAccessor.getTableHRegionLocations(AsyncTable, TableName, byte[], int)) by wrapping the meta AsyncTable so we can count AdvancedScanResultConsumer.onNext(org.apache.hadoop.hbase.client.Result[], org.apache.hadoop.hbase.client.AdvancedScanResultConsumer.ScanController) invocations - one per ScannerNext server response.

Cluster runs with hbase.meta.scanner.caching = 2 so the limit > caching branch is exercised cheaply with a small table (5 user regions).