Class TestRegionObserverPreFlushAndPreCompact
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestRegionObserverPreFlushAndPreCompact
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
Modifier and TypeClassDescriptionstatic class
Coprocessor that returns null when preCompact or preFlush is called. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost
void
Ensure we get expected exception when we try to return null from a preCompact call.void
Ensure we get expected exception when we try to return null from a preFlush call.
-
Field Details
-
CLASS_RULE
-
name
-
-
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
-