public class TestRegionReplicationSinkCallbackAndFlushConcurrently extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestRegionReplicationSinkCallbackAndFlushConcurrently.ErrorReplayRSRpcServices |
static class |
TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest |
static class |
TestRegionReplicationSinkCallbackAndFlushConcurrently.RSForTest |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILY |
private static HBaseTestingUtil |
HTU |
private static int |
NB_SERVERS |
private static byte[] |
QUAL |
private static boolean |
startTest |
private static org.apache.hadoop.hbase.TableName |
tableName |
Constructor and Description |
---|
TestRegionReplicationSinkCallbackAndFlushConcurrently() |
Modifier and Type | Method and Description |
---|---|
private TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest[] |
createTable() |
static void |
setUp() |
private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink |
setUpSpiedRegionReplicationSink(org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink regionReplicationSink,
TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest primaryRegion,
AtomicBoolean completedRef) |
static void |
tearDown() |
void |
test()
This test is for HBASE-26768,test the case that we have already clear the
RegionReplicationSink.failedReplicas due to a flush all edit,which may in flusher
thread,and then in the callback of replay, which may in Netty nioEventLoop,we add a replica to
the RegionReplicationSink.failedReplicas because of a failure of replicating. |
public static final HBaseClassTestRule CLASS_RULE
private static final byte[] FAMILY
private static final byte[] QUAL
private static final HBaseTestingUtil HTU
private static final int NB_SERVERS
private static org.apache.hadoop.hbase.TableName tableName
private static volatile boolean startTest
public TestRegionReplicationSinkCallbackAndFlushConcurrently()
public void test() throws Exception
RegionReplicationSink.failedReplicas
due to a flush all edit,which may in flusher
thread,and then in the callback of replay, which may in Netty nioEventLoop,we add a replica to
the RegionReplicationSink.failedReplicas
because of a failure of replicating.Exception
private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink setUpSpiedRegionReplicationSink(org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink regionReplicationSink, TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest primaryRegion, AtomicBoolean completedRef)
private TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest[] createTable() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.