Class TestReplicationStateBasic
java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationStateBasic
- Direct Known Subclasses:
TestReplicationStateZKImpl
White box testing for replication state interfaces. Implementations should extend this class, and
initialize the interfaces properly.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static String
protected static String
private static final org.slf4j.Logger
protected String
protected org.apache.hadoop.hbase.replication.ReplicationPeers
protected org.apache.hadoop.hbase.replication.ReplicationQueueStorage
protected org.apache.hadoop.hbase.ServerName
protected org.apache.hadoop.hbase.ServerName
protected org.apache.hadoop.hbase.ServerName
protected static final int
protected static final int
protected static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertConnectedPeerStatus
(boolean status, String peerId) protected void
assertNumberOfPeers
(int total) private String
getFileName
(String base, int i) protected void
private void
removeAllQueues
(org.apache.hadoop.hbase.ServerName serverName) void
void
void
void
void
void
-
Field Details
-
LOG
-
rqs
-
server1
-
server2
-
server3
-
rp
-
ID_ONE
- See Also:
-
ID_TWO
- See Also:
-
KEY_ONE
-
KEY_TWO
-
OUR_KEY
-
zkTimeoutCount
-
ZK_MAX_COUNT
- See Also:
-
ZK_SLEEP_INTERVAL
- See Also:
-
-
Constructor Details
-
TestReplicationStateBasic
public TestReplicationStateBasic()
-
-
Method Details
-
testReplicationQueueStorage
public void testReplicationQueueStorage() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
removeAllQueues
private void removeAllQueues(org.apache.hadoop.hbase.ServerName serverName) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testReplicationQueues
- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testHfileRefsReplicationQueues
public void testHfileRefsReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
org.apache.zookeeper.KeeperException
-
testRemovePeerForHFileRefs
public void testRemovePeerForHFileRefs() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
org.apache.zookeeper.KeeperException
-
testReplicationPeers
- Throws:
Exception
-
getFileName
-
testPersistLogPositionAndSeqIdAtomically
- Throws:
Exception
-
assertConnectedPeerStatus
- Throws:
Exception
-
assertNumberOfPeers
protected void assertNumberOfPeers(int total) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
populateQueues
- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-