Class TestReplicationLogCleaner
java.lang.Object
org.apache.hadoop.hbase.replication.master.TestReplicationLogCleaner
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner
private static final org.apache.hadoop.conf.Configuration
private org.apache.hadoop.hbase.master.MasterServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
addQueueData
(org.apache.hadoop.hbase.replication.ReplicationQueueData... datas) private void
addSCP
(org.apache.hadoop.hbase.ServerName serverName, boolean finished) private void
addServer
(org.apache.hadoop.hbase.ServerName serverName) private static org.apache.hadoop.fs.FileStatus
createFileStatus
(org.apache.hadoop.fs.Path path) private static org.apache.hadoop.fs.FileStatus
createFileStatus
(org.apache.hadoop.hbase.ServerName sn, int number) private static org.apache.hadoop.hbase.replication.ReplicationPeerDescription
createPeer
(String peerId) private static Iterable<org.apache.hadoop.fs.FileStatus>
runCleaner
(org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner cleaner, Iterable<org.apache.hadoop.fs.FileStatus> files) void
setUp()
void
tearDown()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
CONF
-
services
-
cleaner
-
-
Constructor Details
-
TestReplicationLogCleaner
public TestReplicationLogCleaner()
-
-
Method Details
-
setUp
- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
tearDown
-
runCleaner
private static Iterable<org.apache.hadoop.fs.FileStatus> runCleaner(org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner cleaner, Iterable<org.apache.hadoop.fs.FileStatus> files) -
createFileStatus
-
createFileStatus
private static org.apache.hadoop.fs.FileStatus createFileStatus(org.apache.hadoop.hbase.ServerName sn, int number) -
createPeer
private static org.apache.hadoop.hbase.replication.ReplicationPeerDescription createPeer(String peerId) -
addServer
-
addSCP
-
addPeer
-
addQueueData
private void addQueueData(org.apache.hadoop.hbase.replication.ReplicationQueueData... datas) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testNoConf
-
testCanNotFilter
-
testNoPeer
-
testNotValidWalFile
-
testMetaWalFile
-
testLiveRegionServerNoQueues
-
testLiveRegionServerWithSCPNoQueues
-
testDeadRegionServerNoQueues
-
testDeadRegionServerWithSCPNoQueues
-
testLiveRegionServerMissingQueue
public void testLiveRegionServerMissingQueue() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testLiveRegionServerShouldNotDelete
public void testLiveRegionServerShouldNotDelete() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testLiveRegionServerShouldNotDeleteTwoPeers
public void testLiveRegionServerShouldNotDeleteTwoPeers() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testLiveRegionServerShouldDelete
public void testLiveRegionServerShouldDelete() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testLiveRegionServerShouldDeleteTwoPeers
public void testLiveRegionServerShouldDeleteTwoPeers() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeadRegionServerMissingQueue
public void testDeadRegionServerMissingQueue() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeadRegionServerShouldNotDelete
public void testDeadRegionServerShouldNotDelete() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeadRegionServerShouldNotDeleteTwoPeers
public void testDeadRegionServerShouldNotDeleteTwoPeers() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeadRegionServerShouldDelete
public void testDeadRegionServerShouldDelete() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeadRegionServerShouldDeleteTwoPeers
public void testDeadRegionServerShouldDeleteTwoPeers() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-