Class TestZKReplicationQueueStorage
java.lang.Object
org.apache.hadoop.hbase.replication.TestZKReplicationQueueStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRulefinal org.junit.rules.TestNameprivate org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigrationprivate static final HBaseZKTestingUtilprivate org.apache.hadoop.hbase.zookeeper.ZKWatcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetLastPushedSeqIdZNode(String regionsZNode, String encodedName, String peerId) static voidmockHFileRefs(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nPeers) mockLastPushedSeqIds(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, String peerId1, String peerId2, int nRegions, int emptyLevel1Count, int emptyLevel2Count) static voidmockQueuesData(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nServers, String peerId, org.apache.hadoop.hbase.ServerName deadServer) voidsetUp()static voidvoidtearDown()static voidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
UTIL
-
zk
-
storage
-
name
-
-
Constructor Details
-
TestZKReplicationQueueStorage
public TestZKReplicationQueueStorage()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
IOException
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
mockQueuesData
public static void mockQueuesData(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nServers, String peerId, org.apache.hadoop.hbase.ServerName deadServer) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
getLastPushedSeqIdZNode
private static String getLastPushedSeqIdZNode(String regionsZNode, String encodedName, String peerId) -
mockLastPushedSeqIds
public static Map<String,Set<String>> mockLastPushedSeqIds(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, String peerId1, String peerId2, int nRegions, int emptyLevel1Count, int emptyLevel2Count) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
mockHFileRefs
public static void mockHFileRefs(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nPeers) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
testDeleteAllData
- Throws:
Exception
-
testEmptyIter
- Throws:
Exception
-
testListAllQueues
- Throws:
Exception
-
testListAllLastPushedSeqIds
- Throws:
Exception
-
testListAllHFileRefs
- Throws:
Exception
-