Class TestRegionReplicationForFlushMarker
java.lang.Object
org.apache.hadoop.hbase.regionserver.regionreplication.TestRegionReplicationForFlushMarker
-
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()static voidtearDown()voidThis test is for HBASE-26960, before HBASE-26960,MemStoreFlusherdoes not write theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHmarker to the WAL when the memstore is empty,so if theRegionReplicationSinkrequest a flush when the memstore is empty, it could not receive theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHand the replication may be hanged.
-
Field Details
-
CLASS_RULE
-
FAMILY
-
QUAL
-
HTU
-
NB_SERVERS
- See Also:
-
tableName
-
startTest
-
-
Constructor Details
-
TestRegionReplicationForFlushMarker
public TestRegionReplicationForFlushMarker()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testCannotFlushMarker
This test is for HBASE-26960, before HBASE-26960,MemStoreFlusherdoes not write theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHmarker to the WAL when the memstore is empty,so if theRegionReplicationSinkrequest a flush when the memstore is empty, it could not receive theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHand the replication may be hanged. After HBASE-26768,when theRegionReplicationSinkrequest a flush when the memstore is empty,even it does not writes theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHmarker to the WAL,we also replicate theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSHmarker to the secondary region replica.- Throws:
Exception
-
createTable
- Throws:
Exception
-