public abstract class TestReplicationStateBasic extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ID_ONE |
protected static String |
ID_TWO |
protected static String |
KEY_ONE |
protected static String |
KEY_TWO |
private static org.slf4j.Logger |
LOG |
protected String |
OUR_KEY |
protected org.apache.hadoop.hbase.replication.ReplicationPeers |
rp |
protected org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
rqs |
protected org.apache.hadoop.hbase.ServerName |
server1 |
protected org.apache.hadoop.hbase.ServerName |
server2 |
protected org.apache.hadoop.hbase.ServerName |
server3 |
protected static int |
ZK_MAX_COUNT |
protected static int |
ZK_SLEEP_INTERVAL |
protected static int |
zkTimeoutCount |
Constructor and Description |
---|
TestReplicationStateBasic() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertConnectedPeerStatus(boolean status,
String peerId) |
protected void |
assertNumberOfPeers(int total) |
private String |
getFileName(String base,
int i) |
protected void |
populateQueues() |
private void |
removeAllQueues(org.apache.hadoop.hbase.ServerName serverName) |
void |
testHfileRefsReplicationQueues() |
void |
testPersistLogPositionAndSeqIdAtomically() |
void |
testRemovePeerForHFileRefs() |
void |
testReplicationPeers() |
void |
testReplicationQueues() |
void |
testReplicationQueueStorage() |
private static final org.slf4j.Logger LOG
protected org.apache.hadoop.hbase.replication.ReplicationQueueStorage rqs
protected org.apache.hadoop.hbase.ServerName server1
protected org.apache.hadoop.hbase.ServerName server2
protected org.apache.hadoop.hbase.ServerName server3
protected org.apache.hadoop.hbase.replication.ReplicationPeers rp
protected static final String ID_ONE
protected static final String ID_TWO
protected static int zkTimeoutCount
protected static final int ZK_MAX_COUNT
protected static final int ZK_SLEEP_INTERVAL
public TestReplicationStateBasic()
public void testReplicationQueueStorage() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
private void removeAllQueues(org.apache.hadoop.hbase.ServerName serverName) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
public void testHfileRefsReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException
org.apache.hadoop.hbase.replication.ReplicationException
org.apache.zookeeper.KeeperException
public void testRemovePeerForHFileRefs() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException
org.apache.hadoop.hbase.replication.ReplicationException
org.apache.zookeeper.KeeperException
public void testReplicationPeers() throws Exception
Exception
private String getFileName(String base, int i)
public void testPersistLogPositionAndSeqIdAtomically() throws Exception
Exception
protected void assertConnectedPeerStatus(boolean status, String peerId) throws Exception
Exception
protected void assertNumberOfPeers(int total) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
protected void populateQueues() throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.