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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static Stringprotected static Stringprivate static final org.slf4j.Loggerprotected Stringprotected org.apache.hadoop.hbase.replication.ReplicationPeersprotected org.apache.hadoop.hbase.replication.ReplicationQueueStorageprotected org.apache.hadoop.hbase.ServerNameprotected org.apache.hadoop.hbase.ServerNameprotected org.apache.hadoop.hbase.ServerNameprotected static final intprotected static final intprotected static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertConnectedPeerStatus(boolean status, String peerId) protected voidassertNumberOfPeers(int total) private StringgetFileName(String base, int i) protected voidprivate voidremoveAllQueues(org.apache.hadoop.hbase.ServerName serverName) voidvoidvoidvoidvoidvoid
-
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.ReplicationExceptionorg.apache.zookeeper.KeeperException
-
testRemovePeerForHFileRefs
public void testRemovePeerForHFileRefs() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationExceptionorg.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
-