Class SerialReplicationTestBase
java.lang.Object
org.apache.hadoop.hbase.replication.SerialReplicationTestBase
- Direct Known Subclasses:
TestAddToSerialReplicationPeer,TestRemoveFromSerialReplicationPeer,TestSerialReplication,TestSerialReplicationFailover
Base class for testing serial replication.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static byte[]protected static byte[]protected static org.apache.hadoop.fs.FileSystemprotected static org.apache.hadoop.fs.Pathprotected org.apache.hadoop.fs.Pathfinal org.junit.rules.TestNameprotected static Stringprotected static final HBaseTestingUtilprotected static org.apache.hadoop.hbase.wal.WALProvider.Writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddPeer(boolean enabled) protected final voidcheckOrder(int expectedEntries) protected final org.apache.hadoop.hbase.TableNameprotected final voidenablePeerAndWaitUntilReplicationDone(int expectedEntries) protected static voidmoveRegion(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.regionserver.HRegionServer rs) protected static voidstatic voidprotected final voidvoidtearDown()static voidprotected final voidwaitUntilReplicationDone(int expectedEntries)
-
Field Details
-
UTIL
-
PEER_ID
-
CF
-
CQ
-
FS
-
LOG_DIR
-
WRITER
-
name
-
logPath
-
-
Constructor Details
-
SerialReplicationTestBase
public SerialReplicationTestBase()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
moveRegion
protected static void moveRegion(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.regionserver.HRegionServer rs) throws Exception - Throws:
Exception
-
rollAllWALs
- Throws:
Exception
-
setupWALWriter
- Throws:
IOException
-
waitUntilReplicationDone
- Throws:
Exception
-
enablePeerAndWaitUntilReplicationDone
- Throws:
Exception
-
addPeer
- Throws:
IOException
-
checkOrder
- Throws:
IOException
-
createTable
protected final org.apache.hadoop.hbase.TableName createTable() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-