Class TestRegionServerReadRequestMetrics
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerReadRequestMetrics
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private static final byte[]
private static final byte[]
static final HBaseClassTestRule
private static final byte[]
private static final byte[]
private static final byte[]
private static final org.slf4j.Logger
private static final int
private static org.apache.hadoop.hbase.client.RegionInfo
private static Map<TestRegionServerReadRequestMetrics.Metric,
Long> private static Map<TestRegionServerReadRequestMetrics.Metric,
Long> private static final byte[]
private static final byte[]
private static final byte[]
private static Collection<org.apache.hadoop.hbase.ServerName>
private static final int
private static org.apache.hadoop.hbase.client.Table
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
private static final int
private static final byte[]
private static final byte[]
private static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.client.Table
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
static void
static void
private void
testReadRequests
(byte[] regionName, int expectedReadRequests) private static void
testReadRequests
(long resultCount, long expectedReadRequests, long expectedFilteredReadRequests) void
void
void
void
void
private static void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
TABLE_NAME
-
CF1
-
CF2
-
ROW1
-
ROW2
-
ROW3
-
COL1
-
COL2
-
COL3
-
VAL1
-
VAL2
-
VAL3
-
MAX_TRY
- See Also:
-
SLEEP_MS
- See Also:
-
TTL
- See Also:
-
admin
-
serverNames
-
table
-
regionInfo
-
requestsMap
-
requestsMapPrev
-
-
Constructor Details
-
TestRegionServerReadRequestMetrics
public TestRegionServerReadRequestMetrics()
-
-
Method Details
-
setUpOnce
- Throws:
Exception
-
createTable
- Throws:
IOException
-
testReadRequests
private static void testReadRequests(long resultCount, long expectedReadRequests, long expectedFilteredReadRequests) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
updateMetricsMap
- Throws:
IOException
InterruptedException
-
getReadRequest
private static long getReadRequest(org.apache.hadoop.hbase.ServerLoad serverLoad, org.apache.hadoop.hbase.RegionLoad regionLoad, TestRegionServerReadRequestMetrics.Metric metric) -
putData
- Throws:
IOException
-
putTTLExpiredData
- Throws:
IOException
InterruptedException
-
tearDownOnce
- Throws:
Exception
-
testReadRequestsCountNotFiltered
- Throws:
Exception
-
testReadRequestsCountWithFilter
- Throws:
Exception
-
testReadRequestsCountWithDeletedRow
- Throws:
Exception
-
testReadRequestsCountWithTTLExpiration
- Throws:
Exception
-
testReadRequestsWithCoprocessor
- Throws:
Exception
-
testReadRequests
- Throws:
Exception
-