public class TestReplicationSmallTests extends TestReplicationBase
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static String |
PEER_ID |
boolean |
serialPeer |
admin, CONF_WITH_LOCALFS, CONF1, CONF2, famName, hbaseAdmin, htable1, htable2, NB_RETRIES, NB_ROWS_IN_BATCH, NB_ROWS_IN_BIG_BATCH, noRepfamName, NUM_SLAVES1, NUM_SLAVES2, PEER_ID2, row, SLEEP_TIME, tableName, UTIL1, UTIL2| Constructor and Description |
|---|
TestReplicationSmallTests() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isSerialPeer() |
static List<Boolean> |
parameters() |
void |
setUp() |
void |
testAddAndRemoveClusters()
Integration test for TestReplicationAdmin, removes and re-add a peer cluster
|
void |
testDeleteTypes()
Verify that version and column delete marker types are replicated correctly.
|
void |
testDisableEnable()
Test disable/enable replication, trying to insert, make sure nothing's replicated, enable it,
the insert should be replicated
|
void |
testLoading()
Do a more intense version testSmallBatch, one that will trigger wal rolling and other
non-trivial code paths
|
void |
testReplicationInReplay()
Test for HBase-15259 WALEdits under replay will also be replicated
|
void |
testSimplePutDelete()
Add a row, check it's replicated, delete it, check's gone
|
void |
testSmallBatch()
Try a small batch upload using the write buffer, check it's replicated
|
void |
testVerifyListReplicatedTable()
Test for HBASE-8663
|
cleanUp, configureClusters, loadData, loadData, restartSourceCluster, restartTargetHBaseCluster, runSimplePutDeleteTest, runSmallBatchTest, setUpBase, setUpBeforeClass, setupConfig, tearDownAfterClass, tearDownBase, waitForReplication, waitForReplicationpublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String PEER_ID
public boolean serialPeer
public TestReplicationSmallTests()
protected boolean isSerialPeer()
isSerialPeer in class TestReplicationBasepublic static List<Boolean> parameters()
public void testDeleteTypes() throws Exception
Exceptionpublic void testSimplePutDelete() throws Exception
Exceptionpublic void testSmallBatch() throws Exception
Exceptionpublic void testDisableEnable() throws Exception
Exceptionpublic void testAddAndRemoveClusters() throws Exception
Exceptionpublic void testLoading() throws Exception
Exceptionpublic void testVerifyListReplicatedTable() throws Exception
Create two new Tables with colfamilies enabled for replication then run ReplicationAdmin.listReplicated(). Finally verify the table:colfamilies. Note: TestReplicationAdmin is a better place for this testing but it would need mocks.
Exceptionpublic void testReplicationInReplay() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.