public class TestMobCompactionWithDefaults extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
protected org.apache.hadoop.hbase.mob.MobFileCleanerChore |
cleanerChore |
protected static org.apache.hadoop.conf.Configuration |
conf |
protected static byte[] |
fam |
protected org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor |
familyDescriptor |
protected static String |
famStr |
protected static HBaseTestingUtility |
HTU |
private static org.slf4j.Logger |
LOG |
protected static long |
minAgeToArchive |
protected static long |
mobLen |
protected static byte[] |
mobVal |
protected int |
numRegions |
protected static byte[] |
qualifier |
protected int |
rows |
protected org.apache.hadoop.hbase.TableName |
table |
protected org.apache.hadoop.hbase.client.TableDescriptorBuilder.ModifyableTableDescriptor |
tableDescriptor |
org.junit.rules.TestName |
test |
protected Boolean |
useFileBasedSFT |
Constructor and Description |
---|
TestMobCompactionWithDefaults(Boolean useFileBasedSFT) |
Modifier and Type | Method and Description |
---|---|
protected void |
additonalConfigSetup() |
void |
baseTestMobFileCompaction() |
protected void |
cleanupAndVerifyCounts(org.apache.hadoop.hbase.TableName table,
String family,
int rows) |
static Collection<Boolean> |
data() |
protected String |
description() |
protected void |
disableCompactions() |
protected void |
enableCompactions() |
protected long |
getNumberOfMobFiles(org.apache.hadoop.hbase.TableName tableName,
String family) |
protected void |
htuStart() |
protected void |
loadAndFlushThreeTimes(int rows,
org.apache.hadoop.hbase.TableName table,
String family) |
private void |
loadData(org.apache.hadoop.hbase.TableName tableName,
int num) |
protected void |
mobCompact(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor,
org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor)
compact the given table and return once it is done.
|
protected void |
mobCompactImpl(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor,
org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor)
Call the API for compaction specific to the test set.
|
protected long |
scanTable(org.apache.hadoop.hbase.TableName tableName) |
void |
setUp() |
void |
tearDown() |
void |
testMobFileCompactionAfterSnapshotClone() |
void |
testMobFileCompactionAfterSnapshotCloneAndFlush() |
protected void |
waitUntilCompactionIsComplete(org.apache.hadoop.hbase.TableName table) |
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
protected static HBaseTestingUtility HTU
protected static org.apache.hadoop.conf.Configuration conf
protected static long minAgeToArchive
protected static final String famStr
protected static final byte[] fam
protected static final byte[] qualifier
protected static final long mobLen
protected static final byte[] mobVal
public org.junit.rules.TestName test
protected org.apache.hadoop.hbase.client.TableDescriptorBuilder.ModifyableTableDescriptor tableDescriptor
protected org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder.ModifyableColumnFamilyDescriptor familyDescriptor
protected org.apache.hadoop.hbase.client.Admin admin
protected org.apache.hadoop.hbase.TableName table
protected int numRegions
protected int rows
protected org.apache.hadoop.hbase.mob.MobFileCleanerChore cleanerChore
protected Boolean useFileBasedSFT
public TestMobCompactionWithDefaults(Boolean useFileBasedSFT)
public static Collection<Boolean> data()
protected void additonalConfigSetup()
private void loadData(org.apache.hadoop.hbase.TableName tableName, int num)
public void baseTestMobFileCompaction() throws InterruptedException, IOException
InterruptedException
IOException
public void testMobFileCompactionAfterSnapshotClone() throws InterruptedException, IOException
InterruptedException
IOException
public void testMobFileCompactionAfterSnapshotCloneAndFlush() throws InterruptedException, IOException
InterruptedException
IOException
protected void loadAndFlushThreeTimes(int rows, org.apache.hadoop.hbase.TableName table, String family) throws IOException
IOException
protected String description()
protected void enableCompactions() throws IOException
IOException
protected void disableCompactions() throws IOException
IOException
protected void mobCompact(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor) throws IOException, InterruptedException
IOException
InterruptedException
protected void mobCompactImpl(org.apache.hadoop.hbase.client.TableDescriptor tableDescriptor, org.apache.hadoop.hbase.client.ColumnFamilyDescriptor familyDescriptor) throws IOException, InterruptedException
IOException
InterruptedException
protected void waitUntilCompactionIsComplete(org.apache.hadoop.hbase.TableName table) throws IOException, InterruptedException
IOException
InterruptedException
protected void cleanupAndVerifyCounts(org.apache.hadoop.hbase.TableName table, String family, int rows) throws InterruptedException, IOException
InterruptedException
IOException
protected long getNumberOfMobFiles(org.apache.hadoop.hbase.TableName tableName, String family) throws IOException
IOException
protected long scanTable(org.apache.hadoop.hbase.TableName tableName)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.