public class TestMetaCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestMetaCache.CallQueueTooBigExceptionInjector
Throws CallQueueTooBigException for all gets.
|
private class |
TestMetaCache.ClientThread |
static class |
TestMetaCache.ExceptionInjector |
static class |
TestMetaCache.FakeRSRpcServices |
static class |
TestMetaCache.LockSleepInjector |
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 static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
private static byte[] |
QUALIFIER |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestMetaCache() |
| Modifier and Type | Method and Description |
|---|---|
static List<Throwable> |
metaCachePreservingExceptions() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCacheClearingOnCallQueueTooBig() |
void |
testPreserveMetaCacheOnException() |
void |
testUserRegionLockThrowsException() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility 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 static final org.slf4j.Logger LOG
public TestMetaCache()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testPreserveMetaCacheOnException() throws Exception
Exceptionpublic void testCacheClearingOnCallQueueTooBig() throws Exception
Exceptionpublic static List<Throwable> metaCachePreservingExceptions()
public void testUserRegionLockThrowsException() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.