public class TestSplitTransactionOnCluster
extends java.lang.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 static void before()
throws java.lang.Exception
java.lang.Exceptionpublic static void after()
throws java.lang.Exception
java.lang.Exceptionpublic void setup()
throws java.io.IOException
java.io.IOExceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testShouldFailSplitIfZNodeDoesNotExistDueToPrevRollBack()
throws java.lang.Exception
java.lang.Exceptionpublic void testRITStateForRollback()
throws java.lang.Exception
java.lang.Exceptionpublic void testSplitFailedCompactionAndSplit()
throws java.lang.Exception
java.lang.Exceptionpublic void testRSSplitEphemeralsDisappearButDaughtersAreOnlinedAfterShutdownHandling()
throws java.io.IOException,
java.lang.InterruptedException,
NodeExistsException,
KeeperException,
DeserializationException,
ServiceException
java.io.IOExceptionjava.lang.InterruptedExceptionNodeExistsExceptionKeeperExceptionDeserializationExceptionServiceExceptionpublic void testExistingZnodeBlocksSplitAndWeRollback()
throws java.io.IOException,
java.lang.InterruptedException,
NodeExistsException,
KeeperException,
ServiceException
java.io.IOExceptionjava.lang.InterruptedExceptionNodeExistsExceptionKeeperExceptionServiceExceptionpublic void testShutdownFixupWhenDaughterHasSplit()
throws java.io.IOException,
java.lang.InterruptedException,
ServiceException
java.io.IOExceptionjava.lang.InterruptedExceptionServiceExceptionpublic void testSplitShouldNotThrowNPEEvenARegionHasEmptySplitFiles()
throws java.lang.Exception
java.lang.Exceptionpublic void testMasterRestartWhenSplittingIsPartial()
throws java.io.IOException,
java.lang.InterruptedException,
NodeExistsException,
KeeperException,
DeserializationException,
ServiceException
java.io.IOExceptionjava.lang.InterruptedExceptionNodeExistsExceptionKeeperExceptionDeserializationExceptionServiceExceptionpublic void testMasterRestartAtRegionSplitPendingCatalogJanitor()
throws java.io.IOException,
java.lang.InterruptedException,
NodeExistsException,
KeeperException,
ServiceException
java.io.IOExceptionjava.lang.InterruptedExceptionNodeExistsExceptionKeeperExceptionServiceExceptionpublic void testSplitBeforeSettingSplittingInZK()
throws java.lang.Exception,
java.lang.InterruptedException,
KeeperException
java.io.IOExceptionjava.lang.InterruptedExceptionKeeperExceptionjava.lang.Exceptionpublic void testTableExistsIfTheSpecifiedTableRegionIsSplitParent()
throws java.lang.Exception
java.lang.Exceptionpublic void testSplitWithRegionReplicas()
throws java.lang.Exception
java.lang.Exceptionpublic void testSplitRegionWithNoStoreFiles()
throws java.lang.Exception
java.lang.Exceptionpublic void testSplitHooksBeforeAndAfterPONR()
throws java.lang.Exception
java.lang.Exceptionpublic void testStoreFileReferenceCreationWhenSplitPolicySaysToSkipRangeCheck()
throws java.lang.Exception
java.lang.Exceptionpublic void testFailedSplit()
throws java.lang.Exception
java.lang.Exceptionpublic void testSSHCleanupDaugtherRegionsOfAbortedSplit()
throws java.lang.Exception
java.lang.Exception