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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private MiniHBaseCluster
private static final org.slf4j.Logger
org.junit.rules.TestName
private static int
private static int
private HBaseTestingUtility
private static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
flush
(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>
void
Test the global mem store size in the region server is equal to sum of each region's mem store sizeprivate void
Wait 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
-