Class TestHeapMemoryManager
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHeapMemoryManager
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
(package private) static class
private static class
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private long
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertHeapSpace
(float expectedHeapPercentage, long currentHeapSpace) private void
assertHeapSpaceDelta
(double expectedDeltaPercent, long oldHeapSpace, long newHeapSpace) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
private void
waitForTune
(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
-