Class TestRegionReplicationSinkCallbackAndFlushConcurrently
java.lang.Object
org.apache.hadoop.hbase.regionserver.regionreplication.TestRegionReplicationSinkCallbackAndFlushConcurrently
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final HBaseTestingUtil
private static final int
private static final byte[]
private static boolean
private static org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 theRegionReplicationSink.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 theRegionReplicationSink.failedReplicas
because of a failure of replicating.
-
Field Details
-
CLASS_RULE
-
FAMILY
-
QUAL
-
HTU
-
NB_SERVERS
- See Also:
-
tableName
-
startTest
-
-
Constructor Details
-
TestRegionReplicationSinkCallbackAndFlushConcurrently
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
test
This test is for HBASE-26768,test the case that we have already clear theRegionReplicationSink.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 theRegionReplicationSink.failedReplicas
because of a failure of replicating.- Throws:
Exception
-
setUpSpiedRegionReplicationSink
private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink setUpSpiedRegionReplicationSink(org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink regionReplicationSink, TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest primaryRegion, AtomicBoolean completedRef) -
createTable
private TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest[] createTable() throws Exception- Throws:
Exception
-