Class TestWALEntrySinkFilter
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestWALEntrySinkFilter
Simple test of sink-side wal entry filter facility.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA DevNull AsyncConnection whose only purpose is checking what edits made it through.static classstatic classSimple filter that will filter out any entry wholse writeTime is <= 5. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intstatic final HBaseClassTestRule(package private) static final AtomicIntegerprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static org.apache.hadoop.hbase.StoppableImplemetentation of Stoppable to pass into ReplicationSink.(package private) static final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CLASS_RULE
-
LOG
-
name
-
BOUNDARY
- See Also:
-
UNFILTERED
-
FILTERED
-
STOPPABLE
Implemetentation of Stoppable to pass into ReplicationSink.
-
-
Constructor Details
-
TestWALEntrySinkFilter
public TestWALEntrySinkFilter()
-
-
Method Details
-
testWALEntryFilter
Test filter. Filter will filter out any write time that is <= 5 (BOUNDARY). We count how many items we filter out and we count how many cells make it through for distribution way down below in the Table#batch implementation. Puts in place a custom DevNullConnection so we can insert our counting Table.- Throws:
IOException
-