Class TestEndToEndSplitTransaction
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestEndToEndSplitTransaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classChecks regions using MetaTableAccessor and HTable methods(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidblockUntilRegionIsInMeta(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) static voidblockUntilRegionIsOpened(org.apache.hadoop.conf.Configuration conf, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) static voidblockUntilRegionSplit(org.apache.hadoop.conf.Configuration conf, long timeout, byte[] regionName, boolean waitForDaughters) Blocks until the region split is complete in hbase:meta and region server opens the daughtersstatic voidcompactAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) static voidflushAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) static voidstatic voidremoveCompactedFiles(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) voidThis is the test for : HBASE-20940 This test will split the region and try to open an reference over store file.voidTests that the client sees meta table changes as atomic during splits
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
CONF
-
name
-
-
Constructor Details
-
TestEndToEndSplitTransaction
public TestEndToEndSplitTransaction()
-
-
Method Details
-
beforeAllTests
- Throws:
Exception
-
afterAllTests
- Throws:
Exception
-
testCanSplitJustAfterASplit
This is the test for : HBASE-20940 This test will split the region and try to open an reference over store file. Once store file has any reference, it makes sure that region can't be split- Throws:
Exception
-
testFromClientSideWhileSplitting
Tests that the client sees meta table changes as atomic during splits- Throws:
Throwable
-
log
-
flushAndBlockUntilDone
public static void flushAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
compactAndBlockUntilDone
public static void compactAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
blockUntilRegionSplit
public static void blockUntilRegionSplit(org.apache.hadoop.conf.Configuration conf, long timeout, byte[] regionName, boolean waitForDaughters) throws IOException, InterruptedException Blocks until the region split is complete in hbase:meta and region server opens the daughters- Throws:
IOExceptionInterruptedException
-
removeCompactedFiles
public static void removeCompactedFiles(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
blockUntilRegionIsInMeta
public static void blockUntilRegionIsInMeta(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
blockUntilRegionIsOpened
public static void blockUntilRegionIsOpened(org.apache.hadoop.conf.Configuration conf, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-