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
IOException
public static void tearDown()
public void testEmptyLoad() throws IOException
IOException
private org.apache.hadoop.fs.FileStatus getOnlyTrackerFile(org.apache.hadoop.fs.FileSystem fs) throws IOException
IOException
private byte[] readAll(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) throws IOException
IOException
private void write(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, byte[] buf, int off, int len) throws IOException
IOException
public void testLoadPartial() throws IOException
IOException
private void writeInt(byte[] buf, int off, int value)
public void testZeroFileLength() throws IOException
IOException
public void testBigFileLength() throws IOException
IOException
public void testChecksumMismatch() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.