Class TestReplicationBase
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
- Direct Known Subclasses:
ReplicationDroppedTablesTestBase
,TestBulkLoadReplication
,TestBulkLoadReplicationHFileRefs
,TestClaimReplicationQueue
,TestMigrateReplicationQueue
,TestNamespaceReplication
,TestRefreshPeerWhileRegionServerRestarts
,TestRefreshRecoveredReplication
,TestRemovePeerProcedureWaitForSCP
,TestReplicationChangingPeerRegionservers
,TestReplicationCompressedWAL
,TestReplicationDisableInactivePeer
,TestReplicationEmptyWALRecovery
,TestReplicationEndpoint
,TestReplicationKillRS
,TestReplicationMetricsforUI
,TestReplicationSmallTests
,TestReplicationSourceManagerJoin
,TestReplicationStatus
,TestReplicationStatusAfterLagging
,TestReplicationStatusBothNormalAndRecoveryLagging
,TestReplicationStatusSink
,TestReplicationStatusSourceStartedTargetStoppedNewOp
,TestReplicationStatusSourceStartedTargetStoppedNoOps
,TestReplicationStatusSourceStartedTargetStoppedWithRecovery
,TestReplicationValueCompressedWAL
,TestReplicationWithFSPeerStorage
,TestReplicator
,TestVerifyReplicationAdjunct
,VerifyReplicationTestBase
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
Modifier and TypeClassDescriptionstatic class
Custom replication endpoint to keep track of replication status for tests. -
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.conf.Configuration
protected static org.apache.hadoop.conf.Configuration
protected static org.apache.hadoop.conf.Configuration
protected static org.apache.hadoop.hbase.client.Connection
protected static org.apache.hadoop.hbase.client.Connection
protected static final byte[]
protected static org.apache.hadoop.hbase.client.Admin
protected static org.apache.hadoop.hbase.client.Table
protected static org.apache.hadoop.hbase.client.Table
private static final org.slf4j.Logger
protected static final int
protected static final int
protected static final int
protected static final byte[]
protected static int
protected static int
protected static final String
protected static AtomicInteger
protected static List<org.apache.hadoop.hbase.wal.WAL.Entry>
protected static final byte[]
protected static final long
protected static final org.apache.hadoop.hbase.TableName
protected static final HBaseTestingUtil
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
protected final void
cleanUp()
(package private) static void
configureClusters
(HBaseTestingUtil util1, HBaseTestingUtil util2) protected static void
createTable
(org.apache.hadoop.hbase.TableName tableName) protected String
protected boolean
protected boolean
protected static void
protected static void
private boolean
protected final void
removePeer
(String peerId) protected static void
restartSourceCluster
(int numSlaves) (package private) static void
restartTargetHBaseCluster
(int numSlaves) protected static void
protected static void
void
static void
protected static void
setupConfig
(HBaseTestingUtil util, String znodeParent) private static void
protected static void
static void
void
protected static void
waitForReplication
(int expectedRows, int retries) protected static void
waitForReplication
(org.apache.hadoop.hbase.client.Table table, int expectedRows, int retries)
-
Field Details
-
LOG
-
connection1
-
connection2
-
CONF_WITH_LOCALFS
-
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
-
isSyncPeer
-
cleanUp
- Throws:
IOException
InterruptedException
-
waitForReplication
protected static void waitForReplication(int expectedRows, int retries) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
waitForReplication
protected static void waitForReplication(org.apache.hadoop.hbase.client.Table table, int expectedRows, int retries) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
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
-
getClusterKey
- Throws:
Exception
-
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:
IOException
InterruptedException
-
runSmallBatchTest
- Throws:
IOException
InterruptedException
-
stopAllRegionServers
- Throws:
IOException
-
tearDownAfterClass
- Throws:
Exception
-