Class TestReplicationSource
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBad Endpoint with failing connection to peer on demand.static classDeadend Endpoint.static classstatic classDeadend Endpoint.static classRegionserver implementation that adds a delay on the graceful shutdown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.fs.Pathprivate static org.apache.hadoop.fs.Pathprivate static final HBaseTestingUtilityprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSourcegetSourceMetrics(String sourceId) static voidprivate org.apache.hadoop.hbase.regionserver.RegionServerServicessetupForAbortTests(org.apache.hadoop.hbase.replication.regionserver.ReplicationSource rs, org.apache.hadoop.conf.Configuration conf, String endpointName) static voidvoidTest ReplicationSource retries startup once an uncaught exception happens during initialization and eplication.source.regionserver.abort is set to false.voidTest ReplicationSource keeps retrying startup indefinitely without blocking the main thread, when replication.source.regionserver.abort is set to false.voidTest ReplicationSource retries startup once an uncaught exception happens during initialization and replication.source.regionserver.abort is set to true.voidvoidTest the default ReplicationSource skips queuing hbase:meta WAL files.voidSanity check that we can move logs around while we are reading from them.voidTest HBASE-20497 Moved here from TestReplicationSource because doesn't need cluster.voidvoidTests that recovered queues are preserved on a regionserver shutdown.voidvoidTests thatReplicationSource.terminate(String)will timeout properly Moved here from TestReplicationSource because doesn't need cluster.voidTest that we filter out meta edits, etc.
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
TEST_UTIL_PEER
-
FS
-
oldLogDir
-
logDir
-
conf
-
-
Constructor Details
-
TestReplicationSource
public TestReplicationSource()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testDefaultSkipsMetaWAL
Test the default ReplicationSource skips queuing hbase:meta WAL files.- Throws:
IOException
-
testWALEntryFilter
Test that we filter out meta edits, etc.- Throws:
IOException
-
testLogMoving
Sanity check that we can move logs around while we are reading from them. Should this test fail, ReplicationSource would have a hard time reading logs that are being archived.- Throws:
Exception
-
testTerminateTimeout
Tests thatReplicationSource.terminate(String)will timeout properly Moved here from TestReplicationSource because doesn't need cluster.- Throws:
Exception
-
testTerminateClearsBuffer
- Throws:
Exception
-
testServerShutdownRecoveredQueue
Tests that recovered queues are preserved on a regionserver shutdown. See HBASE-18192- Throws:
Exception
-
testRecoveredReplicationSourceShipperGetPosition
Test HBASE-20497 Moved here from TestReplicationSource because doesn't need cluster.- Throws:
Exception
-
setupForAbortTests
private org.apache.hadoop.hbase.regionserver.RegionServerServices setupForAbortTests(org.apache.hadoop.hbase.replication.regionserver.ReplicationSource rs, org.apache.hadoop.conf.Configuration conf, String endpointName) throws IOException - Throws:
IOException
-
testAbortFalseOnError
Test ReplicationSource retries startup once an uncaught exception happens during initialization and eplication.source.regionserver.abort is set to false.- Throws:
IOException
-
testReplicationSourceInitializingMetric
- Throws:
IOException
-
testAbortFalseOnErrorDoesntBlockMainThread
Test ReplicationSource keeps retrying startup indefinitely without blocking the main thread, when replication.source.regionserver.abort is set to false.- Throws:
IOException
-
testAbortTrueOnError
Test ReplicationSource retries startup once an uncaught exception happens during initialization and replication.source.regionserver.abort is set to true.- Throws:
IOException
-
testAgeOfOldestWal
- Throws:
Exception
-
getSourceMetrics
private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource getSourceMetrics(String sourceId)
-