Class TestRegionReplicationSinkCallbackAndFlushConcurrently
java.lang.Object
org.apache.hadoop.hbase.regionserver.regionreplication.TestRegionReplicationSinkCallbackAndFlushConcurrently
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final HBaseTestingUtilprivate static final intprivate static final byte[]private static booleanprivate static org.apache.hadoop.hbase.TableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetUp()private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSinksetUpSpiedRegionReplicationSink(org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationSink regionReplicationSink, TestRegionReplicationSinkCallbackAndFlushConcurrently.HRegionForTest primaryRegion, AtomicBoolean completedRef) static voidtearDown()voidtest()This test is for HBASE-26768,test the case that we have already clear theRegionReplicationSink.failedReplicasdue 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.failedReplicasbecause 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.failedReplicasdue 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.failedReplicasbecause 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
-