Package org.apache.hadoop.hbase
Class TestGlobalMemStoreSize
java.lang.Object
org.apache.hadoop.hbase.TestGlobalMemStoreSize
Test HBASE-3694 whether the GlobalMemStoreSize is the same as the summary of all the online
region's MemStoreSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate SingleProcessHBaseClusterprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate 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>voidTest 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
-
CLASS_RULE
-
LOG
-
regionServerNum
-
regionNum
-
totalRegionNum
-
TEST_UTIL
-
cluster
-
name
-
-
Constructor Details
-
TestGlobalMemStoreSize
public TestGlobalMemStoreSize()
-
-
Method Details
-
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
-