Class TestStoreFileListFile
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.TestStoreFileListFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFileprivate org.apache.hadoop.fs.Pathprivate static final HBaseCommonTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFilecreate()private org.apache.hadoop.fs.FileStatusgetOnlyTrackerFile(org.apache.hadoop.fs.FileSystem fs) private byte[]readAll(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file) voidsetUp()static voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidprivate voidwrite(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, byte[] buf, int off, int len) private voidwriteInt(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:
IOExceptionInterruptedException
-
testConcurrentUpdate
- Throws:
IOException
-
testLoadHigherVersion
- Throws:
IOException
-