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
Exception
public void testAutoTunerShouldBeOffWhenMaxMinRangesForBlockCacheIsNotGiven() throws Exception
Exception
public void testWhenMemstoreAndBlockCacheMaxMinChecksFails() throws Exception
Exception
public void testWhenClusterIsWriteHeavyWithEmptyMemstore() throws Exception
Exception
public void testHeapMemoryManagerWhenOffheapFlushesHappenUnderReadHeavyCase() throws Exception
Exception
public void testHeapMemoryManagerWithOffheapMemstoreAndMixedWorkload() throws Exception
Exception
public void testWhenClusterIsReadHeavyWithEmptyBlockCache() throws Exception
Exception
public void testWhenClusterIsWriteHeavy() throws Exception
Exception
public void testWhenClusterIsWriteHeavyWithOffheapMemstore() throws Exception
Exception
public void testWhenClusterIsReadHeavy() throws Exception
Exception
public void testWhenClusterIsHavingMoreWritesThanReads() throws Exception
Exception
public void testBlockedFlushesIncreaseMemstoreInSteadyState() throws Exception
Exception
public void testPluggingInHeapMemoryTuner() throws Exception
Exception
public void testWhenSizeGivenByHeapTunerGoesOutsideRange() throws Exception
Exception
public void testWhenCombinedHeapSizesFromTunerGoesOutSideMaxLimit() throws Exception
Exception
private 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
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.