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
Modifier and TypeClassDescriptionstatic final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static byte[]
protected static byte[]
protected static org.apache.hadoop.fs.FileSystem
protected static org.apache.hadoop.fs.Path
protected org.apache.hadoop.fs.Path
final org.junit.rules.TestName
protected static String
protected static final HBaseTestingUtility
protected static org.apache.hadoop.hbase.wal.WALProvider.Writer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addPeer
(boolean enabled) protected final void
checkOrder
(int expectedEntries) protected final org.apache.hadoop.hbase.TableName
protected final void
enablePeerAndWaitUntilReplicationDone
(int expectedEntries) protected static void
moveRegion
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.regionserver.HRegionServer rs) protected static void
static void
protected final void
void
tearDown()
static void
protected final void
waitUntilReplicationDone
(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:
IOException
InterruptedException
-