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 class
A DevNull AsyncConnection whose only purpose is checking what edits made it through.static class
static class
Simple filter that will filter out any entry wholse writeTime is <= 5. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
static final HBaseClassTestRule
(package private) static final AtomicInteger
private static final org.slf4j.Logger
org.junit.rules.TestName
private static org.apache.hadoop.hbase.Stoppable
Implemetentation 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
-