public class TestRegionObserverPreFlushAndPreCompact extends Object
RegionObserver.preFlush(ObserverContext, Store, InternalScanner, FlushLifeCycleTracker)
or
RegionObserver.preCompact(ObserverContext, Store, InternalScanner, ScanType, CompactionLifeCycleTracker, CompactionRequest)
Modifier and Type | Class and Description |
---|---|
static class |
TestRegionObserverPreFlushAndPreCompact.TestRegionObserver
Coprocessor that returns null when preCompact or preFlush is called.
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
Constructor and Description |
---|
TestRegionObserverPreFlushAndPreCompact() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost |
getRegionCoprocessorHost() |
void |
testPreCompactReturningNull()
Ensure we get expected exception when we try to return null from a preCompact call.
|
void |
testPreFlushReturningNull()
Ensure we get expected exception when we try to return null from a preFlush call.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public TestRegionObserverPreFlushAndPreCompact()
public void testPreFlushReturningNull() throws IOException
IOException
- We expect it to throw CoprocessorException
public void testPreCompactReturningNull() throws IOException
IOException
- We expect it to throw CoprocessorException
private org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost getRegionCoprocessorHost()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.