Class TestRegionObserverPreFlushAndPreCompact
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestRegionObserverPreFlushAndPreCompact
@Tag("org.apache.hadoop.hbase.testclassification.CoprocessorTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestRegionObserverPreFlushAndPreCompact
extends Object
Test that we fail if a Coprocessor tries to return a null scanner out
RegionObserver.preFlush(ObserverContext, Store, InternalScanner, FlushLifeCycleTracker)
or
RegionObserver.preCompact(ObserverContext, Store, InternalScanner, ScanType, CompactionLifeCycleTracker, CompactionRequest)- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCoprocessor that returns null when preCompact or preFlush is called. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.RegionCoprocessorHostvoidEnsure we get expected exception when we try to return null from a preCompact call.voidEnsure we get expected exception when we try to return null from a preFlush call.
-
Constructor Details
-
TestRegionObserverPreFlushAndPreCompact
-
-
Method Details
-
testPreFlushReturningNull
Ensure we get expected exception when we try to return null from a preFlush call.- Throws:
IOException- We expect it to throwCoprocessorException
-
testPreCompactReturningNull
Ensure we get expected exception when we try to return null from a preCompact call.- Throws:
IOException- We expect it to throwCoprocessorException
-
getRegionCoprocessorHost
-