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 |
---|---|
private boolean |
executeUntilCacheClearingException(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Scan scan) |
static List<Throwable> |
metaCachePreservingExceptions() |
private void |
populateCache(org.apache.hadoop.hbase.client.Table table,
byte[] row) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCacheClearingOnCallQueueTooBig() |
void |
testClearsCacheOnScanException() |
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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testPreserveMetaCacheOnException() throws Exception
Exception
public void testClearsCacheOnScanException() throws Exception
Exception
private void populateCache(org.apache.hadoop.hbase.client.Table table, byte[] row)
private boolean executeUntilCacheClearingException(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan)
public void testCacheClearingOnCallQueueTooBig() throws Exception
Exception
public static List<Throwable> metaCachePreservingExceptions()
public void testUserRegionLockThrowsException() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.