Class TestReplicationBase
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
- Direct Known Subclasses:
ReplicationDroppedTablesTestBase,TestBulkLoadReplication,TestBulkLoadReplicationHFileRefs,TestClaimReplicationQueue,TestNamespaceReplication,TestRefreshPeerWhileRegionServerRestarts,TestRefreshRecoveredReplication,TestReplicationAdminWithClusters,TestReplicationChangingPeerRegionservers,TestReplicationCompressedWAL,TestReplicationDisableInactivePeer,TestReplicationEmptyWALRecovery,TestReplicationEndpoint,TestReplicationKillRS,TestReplicationMetricsforUI,TestReplicationSmallTests,TestReplicationSourceManagerJoin,TestReplicationStatus,TestReplicationStatusAfterLagging,TestReplicationStatusBothNormalAndRecoveryLagging,TestReplicationStatusSink,TestReplicationStatusSourceStartedTargetStoppedNewOp,TestReplicationStatusSourceStartedTargetStoppedNoOps,TestReplicationStatusSourceStartedTargetStoppedWithRecovery,TestReplicationValueCompressedWAL,TestReplicationWithFSPeerStorage,TestReplicator,TestVerifyReplication,TestVerifyReplicationAdjunct
This class is only a base for other integration-level replication tests. Do not add tests here.
TestReplicationSmallTests is where tests that don't require bring machines up/down should go All
other tests should have their own classes and extend this one
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCustom replication endpoint to keep track of replication status for tests. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.replication.ReplicationAdminprotected static org.apache.hadoop.conf.Configurationprotected static org.apache.hadoop.conf.Configurationprotected static org.apache.hadoop.conf.Configurationprotected static org.apache.hadoop.hbase.client.Connectionprotected static org.apache.hadoop.hbase.client.Connectionprotected static final byte[]protected static org.apache.hadoop.hbase.client.Adminprotected static org.apache.hadoop.hbase.client.Tableprotected static org.apache.hadoop.hbase.client.Tableprivate static final org.slf4j.Loggerprotected static final intprotected static final intprotected static final intprotected static final byte[]protected static intprotected static intprotected static final Stringprotected static AtomicIntegerprotected static List<org.apache.hadoop.hbase.wal.WAL.Entry>protected static final byte[]protected static final longprotected static final org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtilityprotected static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected final voidcleanUp()(package private) static voidconfigureClusters(HBaseTestingUtility util1, HBaseTestingUtility util2) protected static voidcreateTable(org.apache.hadoop.hbase.TableName tableName) protected booleanprotected static voidprotected static voidprivate booleanprotected final voidremovePeer(String peerId) (package private) static voidrestartSourceCluster(int numSlaves) (package private) static voidrestartTargetHBaseCluster(int numSlaves) protected static voidprotected static voidvoidstatic voidprotected static voidsetupConfig(HBaseTestingUtility util, String znodeParent) private static voidstatic voidvoidprotected static voidwaitForReplication(int expectedRows, int retries) protected static voidwaitForReplication(org.apache.hadoop.hbase.client.Table table, int expectedRows, int retries)
-
Field Details
-
LOG
-
connection1
-
connection2
-
CONF_WITH_LOCALFS
-
admin
-
hbaseAdmin
-
htable1
-
htable2
-
UTIL1
-
UTIL2
-
CONF1
-
CONF2
-
NUM_SLAVES1
-
NUM_SLAVES2
-
NB_ROWS_IN_BATCH
- See Also:
-
NB_ROWS_IN_BIG_BATCH
- See Also:
-
SLEEP_TIME
- See Also:
-
NB_RETRIES
- See Also:
-
replicateCount
-
replicatedEntries
-
tableName
-
famName
-
row
-
noRepfamName
-
PEER_ID2
- See Also:
-
-
Constructor Details
-
TestReplicationBase
public TestReplicationBase()
-
-
Method Details
-
isSerialPeer
-
cleanUp
- Throws:
IOExceptionInterruptedException
-
waitForReplication
protected static void waitForReplication(int expectedRows, int retries) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
waitForReplication
protected static void waitForReplication(org.apache.hadoop.hbase.client.Table table, int expectedRows, int retries) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
loadData
- Throws:
IOException
-
loadData
- Throws:
IOException
-
setupConfig
-
configureClusters
-
restartSourceCluster
- Throws:
Exception
-
restartTargetHBaseCluster
- Throws:
Exception
-
createTable
- Throws:
IOException
-
startClusters
- Throws:
Exception
-
setUpBeforeClass
- Throws:
Exception
-
peerExist
- Throws:
IOException
-
addPeer
protected final void addPeer(String peerId, org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
setUpBase
- Throws:
Exception
-
removePeer
- Throws:
Exception
-
tearDownBase
- Throws:
Exception
-
runSimplePutDeleteTest
- Throws:
IOExceptionInterruptedException
-
runSmallBatchTest
- Throws:
IOExceptionInterruptedException
-
tearDownAfterClass
- Throws:
Exception
-