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 |
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
Exceptionprotected static void setupNamespace() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testSimpleLoadWithMap() throws Exception
Exceptionpublic void testSimpleLoad() throws Exception
Exceptionpublic void testSimpleLoadWithFileCopy() throws Exception
Exceptionpublic void testRegionCrossingLoad() throws Exception
Exceptionpublic void testRegionCrossingRowBloom() throws Exception
Exceptionpublic void testRegionCrossingRowColBloom() throws Exception
Exceptionpublic void testSimpleHFileSplit() throws Exception
Exceptionpublic void testRegionCrossingHFileSplit() throws Exception
Exceptionpublic void testRegionCrossingHFileSplitRowBloom() throws Exception
Exceptionpublic void testRegionCrossingHFileSplitRowColBloom() throws Exception
Exceptionpublic void testSplitALot() throws Exception
Exceptionprivate void testRegionCrossingHFileSplit(org.apache.hadoop.hbase.regionserver.BloomType bloomType) throws Exception
Exceptionprivate 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
Exceptionprivate void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][][] hfileRanges, boolean useMap) throws Exception
Exceptionprivate void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][] tableSplitKeys, byte[][][] hfileRanges) throws Exception
Exceptionprivate void runTest(String testName, org.apache.hadoop.hbase.regionserver.BloomType bloomType, byte[][] tableSplitKeys, byte[][][] hfileRanges, boolean useMap) throws Exception
Exceptionprivate 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
Exceptionpublic 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
Exceptionpublic 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
Exceptionprivate 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
Exceptionpublic void testTagsSurviveBulkLoadSplit() throws Exception
Exceptionpublic void testNonexistentColumnFamilyLoad() throws Exception
Exceptionpublic void testNonHfileFolderWithUnmatchedFamilyName() throws Exception
Exceptionpublic void testNonHfileFolder() throws Exception
Exceptionprivate void testNonHfileFolder(String tableName, boolean preCreateTable) throws Exception
Exceptionprivate static void createRandomDataFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, int size) throws IOException
IOExceptionpublic void testSplitStoreFile() throws IOException
IOExceptionpublic void testSplitStoreFileWithNoneToNone() throws IOException
IOExceptionpublic void testSplitStoreFileWithEncodedToEncoded() throws IOException
IOExceptionpublic void testSplitStoreFileWithEncodedToNone() throws IOException
IOExceptionpublic void testSplitStoreFileWithNoneToEncoded() throws IOException
IOExceptionprivate void testSplitStoreFileWithDifferentEncoding(org.apache.hadoop.hbase.io.encoding.DataBlockEncoding bulkloadEncoding, org.apache.hadoop.hbase.io.encoding.DataBlockEncoding cfEncoding) throws IOException
IOExceptionprivate int verifyHFile(org.apache.hadoop.fs.Path p) throws IOException
IOExceptionprivate void addStartEndKeysForTest(TreeMap<byte[],Integer> map, byte[] first, byte[] last)
public void testInferBoundaries()
public void testLoadTooMayHFiles() throws Exception
Exceptionpublic void testWithoutAnExistingTableAndCreateTableSetToNo() throws Exception
Exceptionpublic void testTableWithCFNameStartWithUnderScore() throws Exception
ExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.