public class TestEndToEndSplitTransaction extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestEndToEndSplitTransaction.RegionChecker
Checks regions using MetaTableAccessor and HTable methods
|
(package private) static class |
TestEndToEndSplitTransaction.RegionSplitter |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
CONF |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestEndToEndSplitTransaction() |
Modifier and Type | Method and Description |
---|---|
static void |
afterAllTests() |
static void |
beforeAllTests() |
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 daughters
|
static 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 |
log(String msg) |
static void |
removeCompactedFiles(org.apache.hadoop.hbase.client.Connection conn,
long timeout,
org.apache.hadoop.hbase.client.RegionInfo hri) |
void |
testCanSplitJustAfterASplit()
This is the test for : HBASE-20940 This test will split the region and try to open an reference
over store file.
|
void |
testFromClientSideWhileSplitting()
Tests that the client sees meta table changes as atomic during splits
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.conf.Configuration CONF
public org.junit.rules.TestName name
public TestEndToEndSplitTransaction()
public static void beforeAllTests() throws Exception
Exception
public static void afterAllTests() throws Exception
Exception
public void testCanSplitJustAfterASplit() throws Exception
Exception
public void testFromClientSideWhileSplitting() throws Throwable
Throwable
public static void flushAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) throws IOException, InterruptedException
IOException
InterruptedException
public static void compactAndBlockUntilDone(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.regionserver.HRegionServer rs, byte[] regionName) throws IOException, InterruptedException
IOException
InterruptedException
public static void blockUntilRegionSplit(org.apache.hadoop.conf.Configuration conf, long timeout, byte[] regionName, boolean waitForDaughters) throws IOException, InterruptedException
IOException
InterruptedException
public static void removeCompactedFiles(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException
IOException
InterruptedException
public static void blockUntilRegionIsInMeta(org.apache.hadoop.hbase.client.Connection conn, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException
IOException
InterruptedException
public static void blockUntilRegionIsOpened(org.apache.hadoop.conf.Configuration conf, long timeout, org.apache.hadoop.hbase.client.RegionInfo hri) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.