Class TestReplicationSource
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Bad Endpoint with failing connection to peer on demand.static class
Deadend Endpoint.static class
static class
Deadend Endpoint.static class
Regionserver implementation that adds a delay on the graceful shutdown. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private static org.apache.hadoop.fs.Path
private static org.apache.hadoop.fs.Path
private static final HBaseTestingUtil
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource
getSourceMetrics
(String sourceId) static void
private org.apache.hadoop.hbase.regionserver.RegionServerServices
setupForAbortTests
(org.apache.hadoop.hbase.replication.regionserver.ReplicationSource rs, org.apache.hadoop.conf.Configuration conf, String endpointName) static void
void
Test ReplicationSource retries startup once an uncaught exception happens during initialization and eplication.source.regionserver.abort is set to false.void
Test ReplicationSource keeps retrying startup indefinitely without blocking the main thread, when replication.source.regionserver.abort is set to false.void
Test ReplicationSource retries startup once an uncaught exception happens during initialization and replication.source.regionserver.abort is set to true.void
void
Test the default ReplicationSource skips queuing hbase:meta WAL files.void
Sanity check that we can move logs around while we are reading from them.void
void
Tests that recovered queues are preserved on a regionserver shutdown.void
void
Tests thatReplicationSource.terminate(String)
will timeout properly Moved here from TestReplicationSource because doesn't need cluster.void
Test 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
-
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)
-