Class TestStoreFileInfo
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestStoreFileInfo
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestStoreFileInfo
extends Object
Test HStoreFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.fs.PathcreatePlainHFileOnTestFs(org.apache.hadoop.fs.Path dir) private static org.apache.hadoop.fs.FileSystemfileSystemCountingGetFileStatus(org.apache.hadoop.fs.FileSystem base, AtomicInteger statCalls) private static org.apache.hadoop.hbase.regionserver.StoreContextnewStoreContextForTest(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir) voidPlain HFiles should not callgetFileStatusagain when opening a reader context if size and status were established atStoreFileInfoconstruction.voidvoidvoidvoidvoidvoidValidate that we can handle valid tables with '.', '_', and '-' chars.voidvoid
-
Field Details
-
TEST_UTIL
-
PLAIN_HFILE_NAME
- See Also:
-
-
Constructor Details
-
TestStoreFileInfo
public TestStoreFileInfo()
-
-
Method Details
-
fileSystemCountingGetFileStatus
private static org.apache.hadoop.fs.FileSystem fileSystemCountingGetFileStatus(org.apache.hadoop.fs.FileSystem base, AtomicInteger statCalls) -
createPlainHFileOnTestFs
private static org.apache.hadoop.fs.Path createPlainHFileOnTestFs(org.apache.hadoop.fs.Path dir) throws IOException - Throws:
IOException
-
newStoreContextForTest
private static org.apache.hadoop.hbase.regionserver.StoreContext newStoreContextForTest(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir) throws IOException - Throws:
IOException
-
testStoreFileNames
Validate that we can handle valid tables with '.', '_', and '-' chars. -
testEqualsWithLink
- Throws:
IOException
-
testCreateReaderContextSkipsRestatForPlainHFile
Plain HFiles should not callgetFileStatusagain when opening a reader context if size and status were established atStoreFileInfoconstruction.- Throws:
IOException
-
testGetReferencedFileStatusSkipsRestatForPlainHFile
- Throws:
IOException
-
testPlainHFileStatusNeedsRefreshForBlockDistribution
- Throws:
IOException
-
testTrackerGetStoreFileInfoWithStatusSkipsRestatOnOpen
- Throws:
IOException
-
testTrackerGetStoreFileInfoWithoutStatusSkipsRestatOnOpen
- Throws:
IOException
-
testHFileLinkReferenceRetainsReferencePathInReaderContext
- Throws:
IOException
-
testOpenErrorMessageReference
- Throws:
IOException
-