public class TestCompaction extends Object
Modifier and Type | Class and Description |
---|---|
class |
TestCompaction.BlockingStoreMockMaker |
static class |
TestCompaction.DummyCompactor |
static class |
TestCompaction.TrackableCompactionRequest
Simple
CompactionRequest on which you can wait until the requested compaction finishes. |
Modifier and Type | Field and Description |
---|---|
protected Configuration |
conf |
TestName |
name |
Constructor and Description |
---|
TestCompaction()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
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
CompactSplitThread |
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 void testInterruptCompaction() throws Exception
Exception
public void testCompactionWithCorruptResult() throws Exception
Exception
public void testTrackingCompactionRequest() throws Exception
Exception
public void testMultipleCustomCompactionRequests() throws Exception
CompactSplitThread
Exception
- on failurepublic void testCompactionQueuePriorities() throws Exception
Exception
public 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 test