public class TestHFile extends HBaseTestCase
Copied from hadoop-3315 tfile. Remove after tfile is committed and use the tfile version of this class instead.
HBaseTestCase.ClientScannerIncommon, HBaseTestCase.FlushCache, HBaseTestCase.HRegionIncommon, HBaseTestCase.HTableIncommon, HBaseTestCase.Incommon, HBaseTestCase.InternalScannerIncommon, HBaseTestCase.ScannerIncommon
COLUMNS, conf, fam1, fam2, fam3, FIRST_CHAR, fs, fsTableDescriptors, LAST_CHAR, MAXVERSIONS, meta, PUNCTUATION, START_KEY, START_KEY_BYTES, testDir, testUtil
Constructor and Description |
---|
TestHFile() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Note that this method must be called after the mini hdfs cluster has
started or we end up with a local file system.
|
void |
tearDown() |
void |
testCompressionOrdinance()
Make sure the ordinals for our compression algorithms do not change on us.
|
void |
testCorrupt0LengthHFile()
Create 0-length hfile and show that it fails
|
void |
testCorruptTruncatedHFile()
Create a truncated hfile and verify that exception thrown.
|
void |
testEmptyHFile()
Test empty HFile.
|
void |
testMetaBlocks() |
void |
testNullMetaBlocks() |
void |
testTFileFeatures() |
protected void |
testTFilefeaturesInternals(boolean useTags) |
static void |
truncateFile(FileSystem fs,
Path src,
Path dst) |
addContent, addContent, addContent, addContent, addContent, addContent, addContent, assertByteEquals, assertEquals, assertResultEquals, closeRootAndMeta, createMetaRegion, createNewHRegion, createNewHRegion, createTableDescriptor, createTableDescriptor, createTableDescriptor, getUnitTestdir, openClosedRegion, shutdownDfs
public void setUp() throws Exception
HBaseTestCase
setUp
in class HBaseTestCase
Exception
public void tearDown() throws Exception
tearDown
in class HBaseTestCase
Exception
public void testEmptyHFile() throws IOException
IOException
public void testCorrupt0LengthHFile() throws IOException
IOException
public static void truncateFile(FileSystem fs, Path src, Path dst) throws IOException
IOException
public void testCorruptTruncatedHFile() throws IOException
IOException
public void testTFileFeatures() throws IOException
IOException
protected void testTFilefeaturesInternals(boolean useTags) throws IOException
IOException
public void testCompressionOrdinance()