Class TestStoreFileListFile
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.TestStoreFileListFile
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFile
private org.apache.hadoop.fs.Path
private static final HBaseCommonTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFile
create()
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
void
void
void
void
void
void
void
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)
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
testDir
-
storeFileListFile
-
name
-
-
Constructor Details
-
TestStoreFileListFile
public TestStoreFileListFile()
-
-
Method Details
-
create
private org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFile create() throws IOException- Throws:
IOException
-
setUp
- Throws:
IOException
-
tearDown
-
testEmptyLoad
- Throws:
IOException
-
getOnlyTrackerFile
private org.apache.hadoop.fs.FileStatus getOnlyTrackerFile(org.apache.hadoop.fs.FileSystem fs) throws IOException - Throws:
IOException
-
readAll
private byte[] readAll(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) throws IOException - Throws:
IOException
-
write
private void write(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, byte[] buf, int off, int len) throws IOException - Throws:
IOException
-
testLoadPartial
- Throws:
IOException
-
writeInt
-
testZeroFileLength
- Throws:
IOException
-
testBigFileLength
- Throws:
IOException
-
testChecksumMismatch
- Throws:
IOException
-
testLoadNewerTrackFiles
- Throws:
IOException
InterruptedException
-
testConcurrentUpdate
- Throws:
IOException
-
testLoadHigherVersion
- Throws:
IOException
-