public class TestHeapMemoryManager extends Object
| Modifier and Type | Class and Description | 
|---|---|
| private static class  | TestHeapMemoryManager.BlockCacheStub | 
| (package private) static class  | TestHeapMemoryManager.CustomHeapMemoryTuner | 
| private static class  | TestHeapMemoryManager.MemstoreFlusherStub | 
| private static class  | TestHeapMemoryManager.RegionServerAccountingStub | 
| private static class  | TestHeapMemoryManager.RegionServerStub | 
| Modifier and Type | Field and Description | 
|---|---|
| static HBaseClassTestRule | CLASS_RULE | 
| private long | maxHeapSize | 
| private static HBaseTestingUtility | UTIL | 
| Constructor and Description | 
|---|
| TestHeapMemoryManager() | 
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility UTIL
private long maxHeapSize
public TestHeapMemoryManager()
public void testAutoTunerShouldBeOffWhenMaxMinRangesForMemstoreIsNotGiven() throws Exception
Exceptionpublic void testAutoTunerShouldBeOffWhenMaxMinRangesForBlockCacheIsNotGiven() throws Exception
Exceptionpublic void testWhenMemstoreAndBlockCacheMaxMinChecksFails() throws Exception
Exceptionpublic void testWhenClusterIsWriteHeavyWithEmptyMemstore() throws Exception
Exceptionpublic void testHeapMemoryManagerWhenOffheapFlushesHappenUnderReadHeavyCase() throws Exception
Exceptionpublic void testHeapMemoryManagerWithOffheapMemstoreAndMixedWorkload() throws Exception
Exceptionpublic void testWhenClusterIsReadHeavyWithEmptyBlockCache() throws Exception
Exceptionpublic void testWhenClusterIsWriteHeavy() throws Exception
Exceptionpublic void testWhenClusterIsWriteHeavyWithOffheapMemstore() throws Exception
Exceptionpublic void testWhenClusterIsReadHeavy() throws Exception
Exceptionpublic void testWhenClusterIsHavingMoreWritesThanReads() throws Exception
Exceptionpublic void testBlockedFlushesIncreaseMemstoreInSteadyState() throws Exception
Exceptionpublic void testPluggingInHeapMemoryTuner() throws Exception
Exceptionpublic void testWhenSizeGivenByHeapTunerGoesOutsideRange() throws Exception
Exceptionpublic void testWhenCombinedHeapSizesFromTunerGoesOutSideMaxLimit() throws Exception
Exceptionprivate void assertHeapSpace(float expectedHeapPercentage, long currentHeapSpace)
private void assertHeapSpaceDelta(double expectedDeltaPercent, long oldHeapSpace, long newHeapSpace)
private void waitForTune(TestHeapMemoryManager.MemstoreFlusherStub memStoreFlusher, long oldMemstoreHeapSize) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.