Package org.apache.hadoop.hbase.client
Class TestMetaCache
java.lang.Object
org.apache.hadoop.hbase.client.TestMetaCache
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Throws CallQueueTooBigException for all gets.static class
static class
static class
static class
Rotates through the possible cache clearing and non-cache clearing exceptions for requests. -
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.regionserver.HRegionServer
static final HBaseClassTestRule
private org.apache.hadoop.hbase.client.Connection
private static final byte[]
private org.apache.hadoop.hbase.client.AsyncRegionLocator
private org.apache.hadoop.hbase.client.MetricsConnection
private static final byte[]
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
executeAndGetNewMisses
(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) static void
private void
setupConnection
(int retry) void
tearDown()
static void
void
Test that our cleanOverlappingRegions doesn't incorrectly remove regions from cache.void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
QUALIFIER
-
badRS
-
conn
-
metrics
-
locator
-
-
Constructor Details
-
TestMetaCache
public TestMetaCache()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
setupConnection
- Throws:
IOException
-
testAddToCacheReverse
Test that our cleanOverlappingRegions doesn't incorrectly remove regions from cache. Originally encountered when using floorEntry rather than lowerEntry.- Throws:
IOException
InterruptedException
-
testMergeEmptyWithMetaCache
- Throws:
Throwable
-
executeAndGetNewMisses
private long executeAndGetNewMisses(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) throws Throwable - Throws:
Throwable
-
testPreserveMetaCacheOnException
- Throws:
Exception
-
testCacheClearingOnCallQueueTooBig
- Throws:
Exception
-
metaCachePreservingExceptions
-