public class TestMetaCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestMetaCache.CallQueueTooBigExceptionInjector
Throws CallQueueTooBigException for all gets.
|
static class |
TestMetaCache.ExceptionInjector |
static class |
TestMetaCache.FakeRSRpcServices |
static class |
TestMetaCache.RegionServerWithFakeRpcServices |
static class |
TestMetaCache.RoundRobinExceptionInjector
Rotates through the possible cache clearing and non-cache clearing exceptions for requests.
|
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.regionserver.HRegionServer |
badRS |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.client.Connection |
conn |
private static byte[] |
FAMILY |
private org.apache.hadoop.hbase.client.AsyncRegionLocator |
locator |
private org.apache.hadoop.hbase.client.MetricsConnection |
metrics |
private static byte[] |
QUALIFIER |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtil |
TEST_UTIL |
Constructor and Description |
---|
TestMetaCache() |
Modifier and Type | Method and Description |
---|---|
private long |
executeAndGetNewMisses(org.junit.function.ThrowingRunnable runnable,
org.apache.hadoop.hbase.client.MetricsConnection metrics) |
static List<Throwable> |
metaCachePreservingExceptions() |
static void |
setUpBeforeClass() |
private void |
setupConnection(int retry) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testAddToCacheReverse()
Test that our cleanOverlappingRegions doesn't incorrectly remove regions from cache.
|
void |
testCacheClearingOnCallQueueTooBig() |
void |
testMergeEmptyWithMetaCache() |
void |
testPreserveMetaCacheOnException() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtil TEST_UTIL
private static final org.apache.hadoop.hbase.TableName TABLE_NAME
private static final byte[] FAMILY
private static final byte[] QUALIFIER
private static org.apache.hadoop.hbase.regionserver.HRegionServer badRS
private org.apache.hadoop.hbase.client.Connection conn
private org.apache.hadoop.hbase.client.MetricsConnection metrics
private org.apache.hadoop.hbase.client.AsyncRegionLocator locator
public TestMetaCache()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void tearDown() throws IOException
IOException
private void setupConnection(int retry) throws IOException
IOException
public void testAddToCacheReverse() throws IOException, InterruptedException
IOException
InterruptedException
public void testMergeEmptyWithMetaCache() throws Throwable
Throwable
private long executeAndGetNewMisses(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) throws Throwable
Throwable
public void testPreserveMetaCacheOnException() throws Exception
Exception
public void testCacheClearingOnCallQueueTooBig() throws Exception
Exception
public static List<Throwable> metaCachePreservingExceptions()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.