public class TestStoreFileListFile extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFile |
storeFileListFile |
private org.apache.hadoop.fs.Path |
testDir |
private static HBaseCommonTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestStoreFileListFile() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.hadoop.fs.FileStatus |
getOnlyTrackerFile(org.apache.hadoop.fs.FileSystem fs) |
private byte[] |
readAll(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file) |
void |
setUp() |
static void |
tearDown() |
void |
testBigFileLength() |
void |
testChecksumMismatch() |
void |
testEmptyLoad() |
void |
testLoadPartial() |
void |
testZeroFileLength() |
private void |
write(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file,
byte[] buf,
int off,
int len) |
private void |
writeInt(byte[] buf,
int off,
int value) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseCommonTestingUtility UTIL
private org.apache.hadoop.fs.Path testDir
private org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFile storeFileListFile
public org.junit.rules.TestName name
public TestStoreFileListFile()
public void setUp() throws IOException
IOExceptionpublic static void tearDown()
public void testEmptyLoad() throws IOException
IOExceptionprivate org.apache.hadoop.fs.FileStatus getOnlyTrackerFile(org.apache.hadoop.fs.FileSystem fs) throws IOException
IOExceptionprivate byte[] readAll(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) throws IOException
IOExceptionprivate void write(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, byte[] buf, int off, int len) throws IOException
IOExceptionpublic void testLoadPartial() throws IOException
IOExceptionprivate void writeInt(byte[] buf, int off, int value)
public void testZeroFileLength() throws IOException
IOExceptionpublic void testBigFileLength() throws IOException
IOExceptionpublic void testChecksumMismatch() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.