public class TestRegionServerReadRequestMetrics extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestRegionServerReadRequestMetrics.Metric |
static class |
TestRegionServerReadRequestMetrics.ScanRegionCoprocessor |
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
private static byte[] |
CF1 |
private static byte[] |
CF2 |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
COL1 |
private static byte[] |
COL2 |
private static byte[] |
COL3 |
private static org.slf4j.Logger |
LOG |
private static int |
MAX_TRY |
private static org.apache.hadoop.hbase.client.RegionInfo |
regionInfo |
private static Map<TestRegionServerReadRequestMetrics.Metric,Long> |
requestsMap |
private static Map<TestRegionServerReadRequestMetrics.Metric,Long> |
requestsMapPrev |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static byte[] |
ROW3 |
private static Collection<org.apache.hadoop.hbase.ServerName> |
serverNames |
private static int |
SLEEP_MS |
private static org.apache.hadoop.hbase.client.Table |
table |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
private static int |
TTL |
private static byte[] |
VAL1 |
private static byte[] |
VAL2 |
private static byte[] |
VAL3 |
Constructor and Description |
---|
TestRegionServerReadRequestMetrics() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.client.Table |
createTable() |
private static long |
getReadRequest(org.apache.hadoop.hbase.ServerLoad serverLoad,
org.apache.hadoop.hbase.RegionLoad regionLoad,
TestRegionServerReadRequestMetrics.Metric metric) |
private static void |
putData() |
private static void |
putTTLExpiredData() |
static void |
setUpOnce() |
static void |
tearDownOnce() |
private void |
testReadRequests(byte[] regionName,
int expectedReadRequests) |
private static void |
testReadRequests(long resultCount,
long expectedReadRequests,
long expectedFilteredReadRequests) |
void |
testReadRequestsCountNotFiltered() |
void |
testReadRequestsCountWithDeletedRow() |
void |
testReadRequestsCountWithFilter() |
void |
testReadRequestsCountWithTTLExpiration() |
void |
testReadRequestsWithCoprocessor() |
private static void |
updateMetricsMap() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] CF1
private static final byte[] CF2
private static final byte[] ROW1
private static final byte[] ROW2
private static final byte[] ROW3
private static final byte[] COL1
private static final byte[] COL2
private static final byte[] COL3
private static final byte[] VAL1
private static final byte[] VAL2
private static final byte[] VAL3
private static final int MAX_TRY
private static final int SLEEP_MS
private static final int TTL
private static org.apache.hadoop.hbase.client.Admin admin
private static Collection<org.apache.hadoop.hbase.ServerName> serverNames
private static org.apache.hadoop.hbase.client.Table table
private static org.apache.hadoop.hbase.client.RegionInfo regionInfo
private static Map<TestRegionServerReadRequestMetrics.Metric,Long> requestsMap
private static Map<TestRegionServerReadRequestMetrics.Metric,Long> requestsMapPrev
public TestRegionServerReadRequestMetrics()
private static org.apache.hadoop.hbase.client.Table createTable() throws IOException
IOException
private static void testReadRequests(long resultCount, long expectedReadRequests, long expectedFilteredReadRequests) throws IOException, InterruptedException
IOException
InterruptedException
private static void updateMetricsMap() throws IOException, InterruptedException
IOException
InterruptedException
private static long getReadRequest(org.apache.hadoop.hbase.ServerLoad serverLoad, org.apache.hadoop.hbase.RegionLoad regionLoad, TestRegionServerReadRequestMetrics.Metric metric)
private static void putData() throws IOException
IOException
private static void putTTLExpiredData() throws IOException, InterruptedException
IOException
InterruptedException
public static void tearDownOnce() throws Exception
Exception
public void testReadRequestsCountNotFiltered() throws Exception
Exception
public void testReadRequestsCountWithFilter() throws Exception
Exception
public void testReadRequestsCountWithDeletedRow() throws Exception
Exception
public void testReadRequestsCountWithTTLExpiration() throws Exception
Exception
public void testReadRequestsWithCoprocessor() throws Exception
Exception
private void testReadRequests(byte[] regionName, int expectedReadRequests) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.