Class TestStoreFileListFile
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.TestStoreFileListFile
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestStoreFileListFile
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate Stringprivate org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileListFileprivate org.apache.hadoop.fs.Pathprivate static final HBaseCommonTestingUtil -
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(org.junit.jupiter.api.TestInfo testInfo) static voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate 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
-
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
-
testLoadOldPatternTrackFiles
- Throws:
IOException
-
testReadReferenceFallbackForOldStoreFileEntry
- Throws:
IOException
-