Package org.apache.hadoop.hbase.client
Class TestMetaCache
java.lang.Object
org.apache.hadoop.hbase.client.TestMetaCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThrows CallQueueTooBigException for all gets.private final classstatic classstatic classstatic classstatic classstatic classRotates through the possible cache clearing and non-cache clearing exceptions for requests. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.regionserver.HRegionServerstatic final HBaseClassTestRuleprivate static final byte[]private static final org.slf4j.Loggerprivate static final byte[]private static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate longexecuteAndGetNewMisses(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) private booleanexecuteUntilCacheClearingException(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Scan scan) private voidpopulateCache(org.apache.hadoop.hbase.client.Table table, byte[] row) static voidstatic voidvoidTest that our cleanOverlappingRegions doesn't incorrectly remove regions from cache.voidvoidvoidvoidvoid
-
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:
IOExceptionInterruptedException
-