public class TestLoadIncrementalHFiles extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) static String |
EXPECTED_MSG_FOR_NON_EXISTING_FAMILY |
private static byte[] |
FAMILY |
(package private) static int |
MAX_FILES_PER_REGION_PER_FAMILY |
private static String |
NAMESPACE |
private static byte[] |
QUALIFIER |
private static byte[][] |
SPLIT_KEYS |
org.junit.rules.TestName |
tn |
(package private) static HBaseTestingUtility |
util |
Constructor and Description |
---|
TestLoadIncrementalHFiles() |
Modifier and Type | Method and Description |
---|---|
private void |
addStartEndKeysForTest(TreeMap<byte[],Integer> map,
byte[] first,
byte[] last) |
private org.apache.hadoop.hbase.client.TableDescriptor |
buildHTD(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType) |
private static void |
createRandomDataFile(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
int size) |
static int |
loadHFiles(String testName,
org.apache.hadoop.hbase.client.TableDescriptor htd,
HBaseTestingUtility util,
byte[] fam,
byte[] qual,
boolean preCreateTable,
byte[][] tableSplitKeys,
byte[][][] hfileRanges,
boolean useMap,
boolean deleteFile,
boolean copyFiles,
int initRowCount,
int factor) |
static int |
loadHFiles(String testName,
org.apache.hadoop.hbase.client.TableDescriptor htd,
HBaseTestingUtility util,
byte[] fam,
byte[] qual,
boolean preCreateTable,
byte[][] tableSplitKeys,
byte[][][] hfileRanges,
boolean useMap,
boolean deleteFile,
boolean copyFiles,
int initRowCount,
int factor,
int depth) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType,
byte[][][] hfileRanges) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType,
byte[][][] hfileRanges,
boolean useMap) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType,
byte[][] tableSplitKeys,
byte[][][] hfileRanges) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType,
byte[][] tableSplitKeys,
byte[][][] hfileRanges,
boolean useMap) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.client.TableDescriptor htd,
boolean preCreateTable,
byte[][] tableSplitKeys,
byte[][][] hfileRanges,
boolean useMap,
boolean copyFiles,
int depth) |
private void |
runTest(String testName,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.regionserver.BloomType bloomType,
boolean preCreateTable,
byte[][] tableSplitKeys,
byte[][][] hfileRanges,
boolean useMap,
int depth) |
static void |
setUpBeforeClass() |
protected static void |
setupNamespace() |
static void |
tearDownAfterClass() |
void |
testBulkLoadByFamily() |
void |
testFailIfNeedSplitHFile() |
void |
testInferBoundaries() |
void |
testLoadTooMayHFiles() |
void |
testNonexistentColumnFamilyLoad()
Test loading into a column family that does not exist.
|
void |
testNonHfileFolder() |
private void |
testNonHfileFolder(String tableName,
boolean preCreateTable)
Write a random data file and a non-file in a dir with a valid family name but not part of the
table families.
|
void |
testNonHfileFolderWithUnmatchedFamilyName() |
void |
testRegionCrossingHFileSplit()
Test case that creates some regions and loads HFiles that cross the boundaries and have
different region boundaries than the table pre-split.
|
private void |
testRegionCrossingHFileSplit(org.apache.hadoop.hbase.regionserver.BloomType bloomType) |
void |
testRegionCrossingHFileSplitRowBloom()
Test case that creates some regions and loads HFiles that cross the boundaries have a ROW bloom
filter and a different region boundaries than the table pre-split.
|
void |
testRegionCrossingHFileSplitRowColBloom()
Test case that creates some regions and loads HFiles that cross the boundaries have a ROWCOL
bloom filter and a different region boundaries than the table pre-split.
|
void |
testRegionCrossingLoad()
Test case that creates some regions and loads HFiles that cross the boundaries of those regions
|
void |
testRegionCrossingRowBloom()
Test loading into a column family that has a ROW bloom filter.
|
void |
testRegionCrossingRowColBloom()
Test loading into a column family that has a ROWCOL bloom filter.
|
void |
testSimpleHFileSplit()
Test case that creates some regions and loads HFiles that have different region boundaries than
the table pre-split.
|
void |
testSimpleLoad()
Test case that creates some regions and loads HFiles that fit snugly inside those regions
|
void |
testSimpleLoadWithFileCopy() |
void |
testSimpleLoadWithMap() |
void |
testSplitALot() |
void |
testSplitStoreFile() |
private void |
testSplitStoreFileWithDifferentEncoding(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding bulkloadEncoding,
org.apache.hadoop.hbase.io.encoding.DataBlockEncoding cfEncoding) |
void |
testSplitStoreFileWithEncodedToEncoded() |
void |
testSplitStoreFileWithEncodedToNone() |
void |
testSplitStoreFileWithNoneToEncoded() |
void |
testSplitStoreFileWithNoneToNone() |
void |
testTableWithCFNameStartWithUnderScore() |
void |
testTagsSurviveBulkLoadSplit()
Test that tags survive through a bulk load that needs to split hfiles.
|
void |
testWithoutAnExistingTableAndCreateTableSetToNo() |
private int |
verifyHFile(org.apache.hadoop.fs.Path p) |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName tn
private static final byte[] QUALIFIER
private static final byte[] FAMILY
private static final String NAMESPACE
static final String EXPECTED_MSG_FOR_NON_EXISTING_FAMILY
static final int MAX_FILES_PER_REGION_PER_FAMILY
private static final byte[][] SPLIT_KEYS
static HBaseTestingUtility util
public TestLoadIncrementalHFiles()
public static void setUpBeforeClass() throws Exception
Exception
protected static void setupNamespace() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testSimpleLoadWithMap() throws Exception
Exception
public void testSimpleLoad() throws Exception
Exception
public void testSimpleLoadWithFileCopy() throws Exception
Exception
public void testRegionCrossingLoad() throws Exception
Exception
public void testRegionCrossingRowBloom() throws Exception
Exception
public void testRegionCrossingRowColBloom() throws Exception
Exception
public void testSimpleHFileSplit() throws Exception
Exception
public void testRegionCrossingHFileSplit() throws Exception
Exception
public void testRegionCrossingHFileSplitRowBloom() throws Exception
Exception
public void testRegionCrossingHFileSplitRowColBloom() throws Exception
Exception
public void testSplitALot() throws Exception
Exception
private void testRegionCrossingHFileSplit(org.apache.hadoop.hbase.regionserver.BloomType bloomType) throws Exception
Exception
private org.apache.hadoop.hbase.client.TableDescriptor buildHTD(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.regionserver.BloomType bloomType)
private void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][][] hfileRanges) throws Exception
Exception
private void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][][] hfileRanges, boolean useMap) throws Exception
Exception
private void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][] tableSplitKeys, byte[][][] hfileRanges) throws Exception
Exception
private void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap) throws Exception
Exception
private void runTest(String testName, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, boolean preCreateTable, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap, int depth) throws Exception
Exception
public static int loadHFiles(String testName, org.apache.hadoop.hbase.client.TableDescriptor htd, HBaseTestingUtility util, byte[] fam, byte[] qual, boolean preCreateTable, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap, boolean deleteFile, boolean copyFiles, int initRowCount, int factor) throws Exception
Exception
public static int loadHFiles(String testName, org.apache.hadoop.hbase.client.TableDescriptor htd, HBaseTestingUtility util, byte[] fam, byte[] qual, boolean preCreateTable, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap, boolean deleteFile, boolean copyFiles, int initRowCount, int factor, int depth) throws Exception
Exception
private void runTest(String testName, org.apache.hadoop.hbase.client.TableDescriptor htd, boolean preCreateTable, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap, boolean copyFiles, int depth) throws Exception
Exception
public void testTagsSurviveBulkLoadSplit() throws Exception
Exception
public void testNonexistentColumnFamilyLoad() throws Exception
Exception
public void testNonHfileFolderWithUnmatchedFamilyName() throws Exception
Exception
public void testNonHfileFolder() throws Exception
Exception
private void testNonHfileFolder(String tableName, boolean preCreateTable) throws Exception
Exception
private static void createRandomDataFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, int size) throws IOException
IOException
public void testSplitStoreFile() throws IOException
IOException
public void testSplitStoreFileWithNoneToNone() throws IOException
IOException
public void testSplitStoreFileWithEncodedToEncoded() throws IOException
IOException
public void testSplitStoreFileWithEncodedToNone() throws IOException
IOException
public void testSplitStoreFileWithNoneToEncoded() throws IOException
IOException
private void testSplitStoreFileWithDifferentEncoding(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding bulkloadEncoding, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding cfEncoding) throws IOException
IOException
private int verifyHFile(org.apache.hadoop.fs.Path p) throws IOException
IOException
private void addStartEndKeysForTest(TreeMap<byte[],Integer> map, byte[] first, byte[] last)
public void testInferBoundaries()
public void testLoadTooMayHFiles() throws Exception
Exception
public void testWithoutAnExistingTableAndCreateTableSetToNo() throws Exception
Exception
public void testTableWithCFNameStartWithUnderScore() throws Exception
Exception
public void testBulkLoadByFamily() throws Exception
Exception
public void testFailIfNeedSplitHFile() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.