public class TestMobCompactionWithException extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestMobCompactionWithException.MyMobStoreCompactor |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
COLUMN_FAMILY |
private org.apache.hadoop.hbase.client.ColumnFamilyDescriptor |
columnFamilyDescriptor |
private static org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private static HBaseTestingUtil |
HTU |
(package private) static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static int |
rowCount |
private byte[] |
STARTROW |
private org.apache.hadoop.hbase.client.Table |
table |
private org.apache.hadoop.hbase.client.TableDescriptor |
tableDescriptor |
private static boolean |
testException |
Constructor and Description |
---|
TestMobCompactionWithException() |
Modifier and Type | Method and Description |
---|---|
private int |
countMobFiles() |
private int |
countStoreFiles() |
private org.apache.hadoop.hbase.client.Put |
createPut(int rowIdx,
byte[] dummyData) |
private void |
createTable(long mobThreshold) |
private long |
getMobFileByteSize() |
private byte[] |
makeDummyData(int size) |
static void |
setUp() |
void |
tearDown() |
void |
testMobStoreFileDeletedWhenCompactException()
This test is for HBASE-27433.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
static final org.slf4j.Logger LOG
private static final HBaseTestingUtil HTU
private static org.apache.hadoop.conf.Configuration conf
private org.apache.hadoop.hbase.regionserver.HRegion region
private org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor
private org.apache.hadoop.hbase.client.ColumnFamilyDescriptor columnFamilyDescriptor
private org.apache.hadoop.fs.FileSystem fs
private static final byte[] COLUMN_FAMILY
private final byte[] STARTROW
private static volatile boolean testException
private static int rowCount
private org.apache.hadoop.hbase.client.Table table
public TestMobCompactionWithException()
private void createTable(long mobThreshold) throws IOException
IOException
public void testMobStoreFileDeletedWhenCompactException() throws Exception
Exception
private int countStoreFiles() throws IOException
IOException
private int countMobFiles() throws IOException
IOException
private long getMobFileByteSize() throws IOException
IOException
private org.apache.hadoop.hbase.client.Put createPut(int rowIdx, byte[] dummyData) throws IOException
IOException
private byte[] makeDummyData(int size)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.