Package org.apache.hadoop.hbase
Class TestGlobalMemStoreSize
java.lang.Object
org.apache.hadoop.hbase.TestGlobalMemStoreSize
@Tag("org.apache.hadoop.hbase.testclassification.MiscTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestGlobalMemStoreSize
extends Object
Test HBASE-3694 whether the GlobalMemStoreSize is the same as the summary of all the online
region's MemStoreSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SingleProcessHBaseClusterprivate static final org.slf4j.Loggerprivate static intprivate static intprivate HBaseTestingUtilprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidflush(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.regionserver.HRegionServer server) Flush and log stats on flushprivate List<org.apache.hadoop.hbase.regionserver.HRegionServer>voidsetUp()voidtearDown()voidtestGlobalMemStore(org.junit.jupiter.api.TestInfo testInfo) Test the global mem store size in the region server is equal to sum of each region's mem store sizeprivate voidWait until all the regions are assigned.
-
Field Details
-
LOG
-
regionServerNum
-
regionNum
-
totalRegionNum
-
TEST_UTIL
-
cluster
-
-
Constructor Details
-
TestGlobalMemStoreSize
public TestGlobalMemStoreSize()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testGlobalMemStore
Test the global mem store size in the region server is equal to sum of each region's mem store size- Throws:
Exception
-
flush
private void flush(org.apache.hadoop.hbase.regionserver.HRegion r, org.apache.hadoop.hbase.regionserver.HRegionServer server) throws IOException Flush and log stats on flush- Throws:
IOException
-
getOnlineRegionServers
-
waitForAllRegionsAssigned
Wait until all the regions are assigned.- Throws:
IOException
-