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 |
admin, CONF_WITH_LOCALFS, conf1, conf2, famName, hbaseAdmin, htable1, htable2, NB_RETRIES, NB_ROWS_IN_BATCH, NB_ROWS_IN_BIG_BATCH, noRepfamName, row, scopes, seperateOldWALs, SLEEP_TIME, tableName, utility1, utility2, zkw1, zkw2
Constructor and Description |
---|
TestReplicationSmallTests() |
Modifier and Type | Method and Description |
---|---|
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, loadData, params, runSimplePutDeleteTest, runSmallBatchTest, setUpBeforeClass, tearDownAfterClass, waitForReplication
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String PEER_ID
public TestReplicationSmallTests()
public void testDeleteTypes() throws Exception
Exception
public void testSimplePutDelete() throws Exception
Exception
public void testSmallBatch() throws Exception
Exception
public void testDisableEnable() throws Exception
Exception
public void testAddAndRemoveClusters() throws Exception
Exception
public void testLoading() throws Exception
Exception
public 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.
Exception
public void testReplicationInReplay() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.