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
Modifier and TypeClassDescriptionstatic class
Custom replication endpoint to keep track of replication status for tests. -
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.replication.ReplicationAdmin
protected 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 HBaseTestingUtility
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
protected final void
cleanUp()
(package private) static void
configureClusters
(HBaseTestingUtility util1, HBaseTestingUtility util2) protected static void
createTable
(org.apache.hadoop.hbase.TableName tableName) protected boolean
protected static void
protected static void
private boolean
protected final void
removePeer
(String peerId) (package private) 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
(HBaseTestingUtility util, String znodeParent) private 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
-
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:
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
-
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
-
tearDownAfterClass
- Throws:
Exception
-