public class TestCompaction extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
TestCompaction.BlockingStoreMockMaker |
static class |
TestCompaction.DummyCompactor |
static class |
TestCompaction.Tracker
Simple
CompactionLifeCycleTracker on which you can wait until the requested compaction
finishes. |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected org.apache.hadoop.conf.Configuration |
conf |
org.junit.rules.TestName |
name |
| Constructor and Description |
|---|
TestCompaction()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
testCompactionFailure() |
void |
testCompactionQueuePriorities()
Test compaction priority management and multiple compactions per store (HBASE-8665).
|
void |
testCompactionSeqId()
Firstly write 10 cells (with different time stamp) to a qualifier and flush
to hfile1, then write 10 cells (with different time stamp) to the same
qualifier and flush to hfile2.
|
void |
testCompactionWithCorruptResult() |
void |
testInterruptCompaction()
Verify that you can stop a long-running compaction
(used during RS shutdown)
|
void |
testMultipleCustomCompactionRequests()
HBASE-7947: Regression test to ensure adding to the correct list in the
CompactSplit |
void |
testTrackingCompactionRequest()
Create a custom compaction request and be sure that we can track it through the queue, knowing
when the compaction is completed.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
protected org.apache.hadoop.conf.Configuration conf
public TestCompaction()
public void testInterruptCompaction() throws Exception
Exceptionpublic void testCompactionWithCorruptResult() throws Exception
Exceptionpublic void testTrackingCompactionRequest() throws Exception
Exceptionpublic void testCompactionFailure() throws Exception
Exceptionpublic void testMultipleCustomCompactionRequests() throws Exception
CompactSplitException - on failurepublic void testCompactionQueuePriorities() throws Exception
Exceptionpublic void testCompactionSeqId() throws Exception
TestCompaction.DummyCompactor so all
10 versions of hfile2 will be written out with seqId cleaned (set to 0)
including cell-B, then when scanner goes to cell-A it will cause a scan
out-of-order assertion error before HBASE-16931Exception - if error occurs during the testCopyright © 2007–2019 Cloudera. All rights reserved.