Class TestHeapMemoryManager
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHeapMemoryManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class(package private) static classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate longprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertHeapSpace(float expectedHeapPercentage, long currentHeapSpace) private voidassertHeapSpaceDelta(double expectedDeltaPercent, long oldHeapSpace, long newHeapSpace) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidwaitForTune(TestHeapMemoryManager.MemstoreFlusherStub memStoreFlusher, long oldMemstoreHeapSize)
-
Field Details
-
CLASS_RULE
-
UTIL
-
maxHeapSize
-
-
Constructor Details
-
TestHeapMemoryManager
public TestHeapMemoryManager()
-
-
Method Details
-
testAutoTunerShouldBeOffWhenMaxMinRangesForMemstoreIsNotGiven
- Throws:
Exception
-
testAutoTunerShouldBeOffWhenMaxMinRangesForBlockCacheIsNotGiven
- Throws:
Exception
-
testWhenMemstoreAndBlockCacheMaxMinChecksFails
- Throws:
Exception
-
testWhenClusterIsWriteHeavyWithEmptyMemstore
- Throws:
Exception
-
testHeapMemoryManagerWhenOffheapFlushesHappenUnderReadHeavyCase
- Throws:
Exception
-
testHeapMemoryManagerWithOffheapMemstoreAndMixedWorkload
- Throws:
Exception
-
testWhenClusterIsReadHeavyWithEmptyBlockCache
- Throws:
Exception
-
testWhenClusterIsWriteHeavy
- Throws:
Exception
-
testWhenClusterIsWriteHeavyWithOffheapMemstore
- Throws:
Exception
-
testWhenClusterIsReadHeavy
- Throws:
Exception
-
testWhenClusterIsHavingMoreWritesThanReads
- Throws:
Exception
-
testBlockedFlushesIncreaseMemstoreInSteadyState
- Throws:
Exception
-
testPluggingInHeapMemoryTuner
- Throws:
Exception
-
testWhenSizeGivenByHeapTunerGoesOutsideRange
- Throws:
Exception
-
testWhenCombinedHeapSizesFromTunerGoesOutSideMaxLimit
- Throws:
Exception
-
assertHeapSpace
-
assertHeapSpaceDelta
private void assertHeapSpaceDelta(double expectedDeltaPercent, long oldHeapSpace, long newHeapSpace) -
waitForTune
private void waitForTune(TestHeapMemoryManager.MemstoreFlusherStub memStoreFlusher, long oldMemstoreHeapSize) throws Exception - Throws:
Exception
-