Class TestReplicationSourceManager
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSourceManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static final byte[]private static final byte[]private static org.apache.hadoop.fs.FileSystemprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManagerfinal org.junit.rules.TestNameprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.fs.Pathprivate org.apache.hadoop.hbase.replication.regionserver.Replicationprivate static org.apache.hadoop.hbase.client.RegionInfoprivate static NavigableMap<byte[],Integer> private org.apache.hadoop.hbase.Serverprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPeerAndWait(String peerId, String clusterKey, boolean syncRep) Add a peer and wait for it to initializeprivate voidcreateWALFile(org.apache.hadoop.fs.Path file) private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSourceprivate voidremovePeerAndWait(String peerId) Remove a peer and wait for it to get cleaned upvoidsetUp()static voidvoidtearDown()static voidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
UTIL
-
CONF
-
FS
-
F1
-
F2
-
TABLE_NAME
-
RI
-
SCOPES
-
name
-
oldLogDir
-
logDir
-
remoteLogDir
-
server
-
replication
-
manager
-
-
Constructor Details
-
TestReplicationSourceManager
public TestReplicationSourceManager()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
IOException
-
setUp
- Throws:
Exception
-
tearDown
-
addPeerAndWait
private void addPeerAndWait(String peerId, String clusterKey, boolean syncRep) throws org.apache.hadoop.hbase.replication.ReplicationException, IOException Add a peer and wait for it to initialize- Throws:
org.apache.hadoop.hbase.replication.ReplicationExceptionIOException
-
removePeerAndWait
Remove a peer and wait for it to get cleaned up- Throws:
Exception
-
createWALFile
- Throws:
Exception
-
testClaimQueue
- Throws:
Exception
-
testSameWALPrefix
- Throws:
IOException
-
getGlobalSource
private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource getGlobalSource() -
testRemovePeerMetricsCleanup
- Throws:
Exception
-
testDisablePeerMetricsCleanup
- Throws:
Exception
-
testRemoveRemoteWALs
- Throws:
Exception
-