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
IOExceptionpublic void testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack()
throws Exception
Exceptionpublic void testSplitFailedCompactionAndSplit()
throws Exception
Exceptionpublic void testRSSplitEphemeralsDisappearButDaughtersAreOnlinedAfterShutdownHandling()
throws IOException,
InterruptedException,
NodeExistsException,
KeeperException,
DeserializationException,
ServiceException
IOExceptionInterruptedExceptionNodeExistsExceptionKeeperExceptionDeserializationExceptionServiceExceptionpublic void testExistingZnodeBlocksSplitAndWeRollback()
throws IOException,
InterruptedException,
NodeExistsException,
KeeperException,
ServiceException
IOExceptionInterruptedExceptionNodeExistsExceptionKeeperExceptionServiceExceptionpublic void testShutdownFixupWhenDaughterHasSplit()
throws IOException,
InterruptedException,
ServiceException
IOExceptionInterruptedExceptionServiceExceptionpublic void testSplitShouldNotThrowNPEEvenARegionHasEmptySplitFiles()
throws Exception
Exceptionpublic void testMasterRestartWhenSplittingIsPartial()
throws IOException,
InterruptedException,
NodeExistsException,
KeeperException,
DeserializationException,
ServiceException
IOExceptionInterruptedExceptionNodeExistsExceptionKeeperExceptionDeserializationExceptionServiceExceptionpublic void testMasterRestartAtRegionSplitPendingCatalogJanitor()
throws IOException,
InterruptedException,
NodeExistsException,
KeeperException,
ServiceException
IOExceptionInterruptedExceptionNodeExistsExceptionKeeperExceptionServiceExceptionpublic void testSplitBeforeSettingSplittingInZK()
throws Exception,
InterruptedException,
KeeperException
IOExceptionInterruptedExceptionKeeperExceptionExceptionpublic void testTableExistsIfTheSpecifiedTableRegionIsSplitParent()
throws Exception
Exceptionpublic void testSplitWithRegionReplicas()
throws Exception
Exceptionpublic void testSplitRegionWithNoStoreFiles()
throws Exception
Exceptionpublic void testSplitHooksBeforeAndAfterPONR()
throws Exception
Exceptionpublic void testStoreFileReferenceCreationWhenSplitPolicySaysToSkipRangeCheck()
throws Exception
Exception