Class TestReplicationSourceManager
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSourceManager
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static final byte[]
private static final byte[]
private static org.apache.hadoop.fs.FileSystem
private org.apache.hadoop.fs.Path
private org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager
final org.junit.rules.TestName
private org.apache.hadoop.fs.Path
private org.apache.hadoop.fs.Path
private org.apache.hadoop.hbase.replication.regionserver.Replication
private static org.apache.hadoop.hbase.client.RegionInfo
private static NavigableMap<byte[],
Integer> private org.apache.hadoop.hbase.Server
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addPeerAndWait
(String peerId, String clusterKey, boolean syncRep) Add a peer and wait for it to initializeprivate void
createWALFile
(org.apache.hadoop.fs.Path file) private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource
private void
removePeerAndWait
(String peerId) Remove a peer and wait for it to get cleaned upvoid
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
-
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.ReplicationException
IOException
-
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
-