Class TestSerialReplicationChecker
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestSerialReplicationChecker
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.replication.regionserver.SerialReplicationChecker
static final HBaseClassTestRule
private org.apache.hadoop.hbase.client.Connection
final org.junit.rules.TestName
private static String
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage
private org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
private static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addParents
(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.client.RegionInfo> parents) private void
addStateAndBarrier
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long... barriers) private org.apache.hadoop.hbase.Cell
createCell
(org.apache.hadoop.hbase.client.RegionInfo region) private org.apache.hadoop.hbase.wal.WAL.Entry
createEntry
(org.apache.hadoop.hbase.client.RegionInfo region, long seqId) private void
setState
(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state) void
setUp()
static void
static void
void
void
void
void
void
void
void
private void
updatePushedSeqId
(org.apache.hadoop.hbase.client.RegionInfo region, long seqId)
-
Field Details
-
CLASS_RULE
-
UTIL
-
PEER_ID
-
QUEUE_STORAGE
-
WAL_FILE_NAME
-
conn
-
checker
-
name
-
tableName
-
-
Constructor Details
-
TestSerialReplicationChecker
public TestSerialReplicationChecker()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
IOException
-
createEntry
private org.apache.hadoop.hbase.wal.WAL.Entry createEntry(org.apache.hadoop.hbase.client.RegionInfo region, long seqId) -
createCell
-
testNoBarrierCanPush
- Throws:
IOException
-
addStateAndBarrier
private void addStateAndBarrier(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long... barriers) throws IOException - Throws:
IOException
-
setState
private void setState(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state) throws IOException - Throws:
IOException
-
updatePushedSeqId
private void updatePushedSeqId(org.apache.hadoop.hbase.client.RegionInfo region, long seqId) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
addParents
private void addParents(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.client.RegionInfo> parents) throws IOException - Throws:
IOException
-
testLastRegionAndOpeningCanNotPush
public void testLastRegionAndOpeningCanNotPush() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testCanPushUnder
public void testCanPushUnder() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testCanPushIfContinuous
public void testCanPushIfContinuous() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testCanPushAfterMerge
public void testCanPushAfterMerge() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testCanPushAfterSplit
public void testCanPushAfterSplit() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testCanPushEqualsToBarrier
public void testCanPushEqualsToBarrier() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-