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.static 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 org.apache.hadoop.hbase.client.Connectionprivate static final byte[]private org.apache.hadoop.hbase.client.AsyncRegionLocatorprivate org.apache.hadoop.hbase.client.MetricsConnectionprivate static final byte[]private static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate longexecuteAndGetNewMisses(org.junit.function.ThrowingRunnable runnable, org.apache.hadoop.hbase.client.MetricsConnection metrics) static voidprivate voidsetupConnection(int retry) voidtearDown()static voidvoidTest that our cleanOverlappingRegions doesn't incorrectly remove regions from cache.voidvoidvoid 
- 
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:
 IOExceptionInterruptedException
 - 
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
 
 -