Class TestEndToEndSplitTransaction
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestEndToEndSplitTransaction
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Checks regions using MetaTableAccessor and HTable methods(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static void
blockUntilRegionIsInMeta
(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) static void
blockUntilRegionIsOpened
(org.apache.hadoop.conf.Configuration conf, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) static void
blockUntilRegionSplit
(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 void
compactAndBlockUntilDone
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) static void
flushAndBlockUntilDone
(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) static void
static void
removeCompactedFiles
(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) void
This is the test for : HBASE-20940 This test will split the region and try to open an reference over store file.void
Tests 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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
blockUntilRegionIsOpened
public static void blockUntilRegionIsOpened(org.apache.hadoop.conf.Configuration conf, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-