public class TestSerialReplicationChecker extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.replication.regionserver.SerialReplicationChecker |
checker |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.client.Connection |
conn |
org.junit.rules.TestName |
name |
private static String |
PEER_ID |
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
QUEUE_STORAGE |
private org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
UTIL |
private static String |
WAL_FILE_NAME |
Constructor and Description |
---|
TestSerialReplicationChecker() |
Modifier and Type | Method and Description |
---|---|
private 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 |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCanPushAfterMerge() |
void |
testCanPushAfterSplit() |
void |
testCanPushEqualsToBarrier() |
void |
testCanPushIfContinuous() |
void |
testCanPushUnder() |
void |
testLastRegionAndOpeningCanNotPush() |
void |
testNoBarrierCanPush() |
private void |
updatePushedSeqId(org.apache.hadoop.hbase.client.RegionInfo region,
long seqId) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.replication.ReplicationQueueStorage QUEUE_STORAGE
private static String WAL_FILE_NAME
private org.apache.hadoop.hbase.client.Connection conn
private org.apache.hadoop.hbase.replication.regionserver.SerialReplicationChecker checker
public final org.junit.rules.TestName name
private org.apache.hadoop.hbase.TableName tableName
public TestSerialReplicationChecker()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void setUp() throws IOException
IOException
private org.apache.hadoop.hbase.wal.WAL.Entry createEntry(org.apache.hadoop.hbase.client.RegionInfo region, long seqId)
private org.apache.hadoop.hbase.Cell createCell(org.apache.hadoop.hbase.client.RegionInfo region)
public void testNoBarrierCanPush() throws IOException
IOException
private void addStateAndBarrier(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state, long... barriers) throws IOException
IOException
private void setState(org.apache.hadoop.hbase.client.RegionInfo region, org.apache.hadoop.hbase.master.RegionState.State state) throws IOException
IOException
private void updatePushedSeqId(org.apache.hadoop.hbase.client.RegionInfo region, long seqId) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
private void addParents(org.apache.hadoop.hbase.client.RegionInfo region, List<org.apache.hadoop.hbase.client.RegionInfo> parents) throws IOException
IOException
public void testLastRegionAndOpeningCanNotPush() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testCanPushUnder() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testCanPushIfContinuous() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testCanPushAfterMerge() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testCanPushAfterSplit() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testCanPushEqualsToBarrier() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.