public class TestSplitTransactionOnCluster extends Object
SplitTransactionImpl
only the below tests are against a running cluster where TestSplitTransaction
is tests against a bare HRegion
.Modifier and Type | Class and Description |
---|---|
static class |
TestSplitTransactionOnCluster.FailingSplitRegionObserver |
static class |
TestSplitTransactionOnCluster.MockedCoordinatedStateManager |
static class |
TestSplitTransactionOnCluster.MockedRegionObserver |
static class |
TestSplitTransactionOnCluster.MockedSplitTransaction |
static class |
TestSplitTransactionOnCluster.MockedSplitTransactionCoordination |
static class |
TestSplitTransactionOnCluster.MockMasterWithoutCatalogJanitor |
Constructor and Description |
---|
TestSplitTransactionOnCluster() |
Modifier and Type | Method and Description |
---|---|
static void |
after() |
static void |
before() |
void |
setup() |
void |
tearDown() |
void |
testExistingZnodeBlocksSplitAndWeRollback() |
void |
testFailedSplit() |
void |
testMasterRestartAtRegionSplitPendingCatalogJanitor()
Verifies HBASE-5806.
|
void |
testMasterRestartWhenSplittingIsPartial()
Verifies HBASE-5806.
|
void |
testRITStateForRollback() |
void |
testRSSplitEphemeralsDisappearButDaughtersAreOnlinedAfterShutdownHandling()
A test that intentionally has master fail the processing of the split message.
|
void |
testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack() |
void |
testShutdownFixupWhenDaughterHasSplit()
Test that if daughter split on us, we won't do the shutdown handler fixup
just because we can't find the immediate daughter of an offlined parent.
|
void |
testSplitBeforeSettingSplittingInZK()
While transitioning node from RS_ZK_REGION_SPLITTING to
RS_ZK_REGION_SPLITTING during region split,if zookeper went down split always
fails for the region.
|
void |
testSplitFailedCompactionAndSplit() |
void |
testSplitHooksBeforeAndAfterPONR() |
void |
testSplitRegionWithNoStoreFiles()
If a table has regions that have no store files in a region, they should split successfully
into two regions with no store files.
|
void |
testSplitShouldNotThrowNPEEvenARegionHasEmptySplitFiles() |
void |
testSplitWithRegionReplicas() |
void |
testSSHCleanupDaugtherRegionsOfAbortedSplit() |
void |
testStoreFileReferenceCreationWhenSplitPolicySaysToSkipRangeCheck() |
void |
testTableExistsIfTheSpecifiedTableRegionIsSplitParent() |
public void setup() throws IOException
IOException
public void testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack() throws Exception
Exception
public void testSplitFailedCompactionAndSplit() throws Exception
Exception
public void testRSSplitEphemeralsDisappearButDaughtersAreOnlinedAfterShutdownHandling() throws IOException, InterruptedException, NodeExistsException, KeeperException, DeserializationException, ServiceException
IOException
InterruptedException
NodeExistsException
KeeperException
DeserializationException
ServiceException
public void testExistingZnodeBlocksSplitAndWeRollback() throws IOException, InterruptedException, NodeExistsException, KeeperException, ServiceException
IOException
InterruptedException
NodeExistsException
KeeperException
ServiceException
public void testShutdownFixupWhenDaughterHasSplit() throws IOException, InterruptedException, ServiceException
IOException
InterruptedException
ServiceException
public void testSplitShouldNotThrowNPEEvenARegionHasEmptySplitFiles() throws Exception
Exception
public void testMasterRestartWhenSplittingIsPartial() throws IOException, InterruptedException, NodeExistsException, KeeperException, DeserializationException, ServiceException
IOException
InterruptedException
NodeExistsException
KeeperException
DeserializationException
ServiceException
public void testMasterRestartAtRegionSplitPendingCatalogJanitor() throws IOException, InterruptedException, NodeExistsException, KeeperException, ServiceException
IOException
InterruptedException
NodeExistsException
KeeperException
ServiceException
public void testSplitBeforeSettingSplittingInZK() throws Exception, InterruptedException, KeeperException
IOException
InterruptedException
KeeperException
Exception
public void testTableExistsIfTheSpecifiedTableRegionIsSplitParent() throws Exception
Exception
public void testSplitWithRegionReplicas() throws Exception
Exception
public void testSplitRegionWithNoStoreFiles() throws Exception
Exception
public void testSplitHooksBeforeAndAfterPONR() throws Exception
Exception
public void testStoreFileReferenceCreationWhenSplitPolicySaysToSkipRangeCheck() throws Exception
Exception