public class TestReplicationSource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestReplicationSource.BadReplicationEndpoint
Bad Endpoint with failing connection to peer on demand.
|
static class |
TestReplicationSource.DoNothingReplicationEndpoint
Deadend Endpoint.
|
static class |
TestReplicationSource.FaultyReplicationEndpoint |
static class |
TestReplicationSource.FlakyReplicationEndpoint
Deadend Endpoint.
|
static class |
TestReplicationSource.ShutdownDelayRegionServer
Regionserver implementation that adds a delay on the graceful shutdown.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.fs.FileSystem |
FS |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
logDir |
private static org.apache.hadoop.fs.Path |
oldLogDir |
private static HBaseTestingUtility |
TEST_UTIL |
private static HBaseTestingUtility |
TEST_UTIL_PEER |
Constructor and Description |
---|
TestReplicationSource() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource |
getSourceMetrics(String sourceId) |
static void |
setUpBeforeClass() |
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 |
tearDownAfterClass() |
void |
testAbortFalseOnError()
Test ReplicationSource retries startup once an uncaught exception happens during initialization
and eplication.source.regionserver.abort is set to false.
|
void |
testAbortFalseOnErrorDoesntBlockMainThread()
Test ReplicationSource keeps retrying startup indefinitely without blocking the main thread,
when replication.source.regionserver.abort is set to false.
|
void |
testAbortTrueOnError()
Test ReplicationSource retries startup once an uncaught exception happens during initialization
and replication.source.regionserver.abort is set to true.
|
void |
testAgeOfOldestWal() |
void |
testDefaultSkipsMetaWAL()
Test the default ReplicationSource skips queuing hbase:meta WAL files.
|
void |
testLogMoving()
Sanity check that we can move logs around while we are reading from them.
|
void |
testRecoveredReplicationSourceShipperGetPosition()
Test HBASE-20497 Moved here from TestReplicationSource because doesn't need cluster.
|
void |
testReplicationSourceInitializingMetric() |
void |
testServerShutdownRecoveredQueue()
Tests that recovered queues are preserved on a regionserver shutdown.
|
void |
testTerminateClearsBuffer() |
void |
testTerminateTimeout()
Tests that
ReplicationSource.terminate(String) will timeout properly Moved here from
TestReplicationSource because doesn't need cluster. |
void |
testWALEntryFilter()
Test that we filter out meta edits, etc.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final HBaseTestingUtility TEST_UTIL_PEER
private static org.apache.hadoop.fs.FileSystem FS
private static org.apache.hadoop.fs.Path oldLogDir
private static org.apache.hadoop.fs.Path logDir
private static org.apache.hadoop.conf.Configuration conf
public TestReplicationSource()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testDefaultSkipsMetaWAL() throws IOException
IOException
public void testWALEntryFilter() throws IOException
IOException
public void testLogMoving() throws Exception
Exception
public void testTerminateTimeout() throws Exception
ReplicationSource.terminate(String)
will timeout properly Moved here from
TestReplicationSource because doesn't need cluster.Exception
public void testTerminateClearsBuffer() throws Exception
Exception
public void testServerShutdownRecoveredQueue() throws Exception
Exception
public void testRecoveredReplicationSourceShipperGetPosition() throws Exception
Exception
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
IOException
public void testAbortFalseOnError() throws IOException
IOException
public void testReplicationSourceInitializingMetric() throws IOException
IOException
public void testAbortFalseOnErrorDoesntBlockMainThread() throws IOException
IOException
public void testAbortTrueOnError() throws IOException
IOException
public void testAgeOfOldestWal() throws Exception
Exception
private org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationSourceSource getSourceMetrics(String sourceId)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.