Class TestReplicationSmallTests
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationBase
org.apache.hadoop.hbase.replication.TestReplicationSmallTests
- Direct Known Subclasses:
TestReplicationSmallTestsSync
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
TestReplicationBase.ReplicationEndpointTest
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final String
boolean
Fields inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
CONF_WITH_LOCALFS, CONF1, CONF2, connection1, connection2, famName, hbaseAdmin, htable1, htable2, NB_RETRIES, NB_ROWS_IN_BATCH, NB_ROWS_IN_BIG_BATCH, noRepfamName, NUM_SLAVES1, NUM_SLAVES2, PEER_ID2, replicateCount, replicatedEntries, row, SLEEP_TIME, tableName, UTIL1, UTIL2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
setUp()
void
Removes and re-add a peer clustervoid
Verify that version and column delete marker types are replicated correctly.void
Test disable/enable replication, trying to insert, make sure nothing's replicated, enable it, the insert should be replicatedvoid
Test for HBASE-27448 Add an admin method to get replication enabled statevoid
Do a more intense version testSmallBatch, one that will trigger wal rolling and other non-trivial code pathsvoid
Test for HBase-15259 WALEdits under replay will also be replicatedvoid
Add a row, check it's replicated, delete it, check's gonevoid
Try a small batch upload using the write buffer, check it's replicatedvoid
Test for HBASE-8663Methods inherited from class org.apache.hadoop.hbase.replication.TestReplicationBase
addPeer, cleanUp, configureClusters, createTable, getClusterKey, isSyncPeer, loadData, loadData, removePeer, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setUpBeforeClass, setupConfig, stopAllRegionServers, tearDownAfterClass, tearDownBase, waitForReplication, waitForReplication
-
Field Details
-
CLASS_RULE
-
LOG
-
PEER_ID
- See Also:
-
serialPeer
-
-
Constructor Details
-
TestReplicationSmallTests
public TestReplicationSmallTests()
-
-
Method Details
-
isSerialPeer
- Overrides:
isSerialPeer
in classTestReplicationBase
-
parameters
-
setUp
- Throws:
Exception
-
testDeleteTypes
Verify that version and column delete marker types are replicated correctly.- Throws:
Exception
-
testSimplePutDelete
Add a row, check it's replicated, delete it, check's gone- Throws:
Exception
-
testSmallBatch
Try a small batch upload using the write buffer, check it's replicated- Throws:
Exception
-
testDisableEnable
Test disable/enable replication, trying to insert, make sure nothing's replicated, enable it, the insert should be replicated- Throws:
Exception
-
testAddAndRemoveClusters
Removes and re-add a peer cluster- Throws:
Exception
-
testLoading
Do a more intense version testSmallBatch, one that will trigger wal rolling and other non-trivial code paths- Throws:
Exception
-
testVerifyListReplicatedTable
Test for HBASE-8663Create two new Tables with colfamilies enabled for replication then run
Admin.listReplicatedTableCFs()
. Finally verify the table:colfamilies.- Throws:
Exception
-
testReplicationInReplay
Test for HBase-15259 WALEdits under replay will also be replicated- Throws:
Exception
-
testGetReplicationPeerState
Test for HBASE-27448 Add an admin method to get replication enabled state- Throws:
Exception
-