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.private final class
static class
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 static final byte[]
private static final org.slf4j.Logger
private static final byte[]
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate long
executeAndGetNewMisses
(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) private boolean
executeUntilCacheClearingException
(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan) private void
populateCache
(org.apache.hadoop.hbase.client.Table table, byte[] row) static void
static void
void
Test that our cleanOverlappingRegions doesn't incorrectly remove regions from cache.void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
QUALIFIER
-
badRS
-
LOG
-
-
Constructor Details
-
TestMetaCache
public TestMetaCache()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testMergeEmptyWithMetaCache
- Throws:
Throwable
-
executeAndGetNewMisses
private long executeAndGetNewMisses(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) throws Throwable - Throws:
Throwable
-
testAddToCacheReverse
Test that our cleanOverlappingRegions doesn't incorrectly remove regions from cache. Originally encountered when using floorEntry rather than lowerEntry. -
testPreserveMetaCacheOnException
- Throws:
Exception
-
testClearsCacheOnScanException
- Throws:
Exception
-
populateCache
-
executeUntilCacheClearingException
private boolean executeUntilCacheClearingException(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan) -
testCacheClearingOnCallQueueTooBig
- Throws:
Exception
-
metaCachePreservingExceptions
-
testUserRegionLockThrowsException
- Throws:
IOException
InterruptedException
-