Class TestHStoreFile

java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHStoreFile

@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests") public class TestHStoreFile extends Object
Test HStoreFile
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
     
    private org.apache.hadoop.hbase.io.hfile.CacheConfig
     
    private static final int
     
    private static final org.apache.hadoop.hbase.util.ChecksumType
     
    private org.apache.hadoop.conf.Configuration
     
    private static final char
     
    private org.apache.hadoop.fs.FileSystem
     
    private static final char
     
    private static final String
     
    private static final org.slf4j.Logger
     
    private String
     
    private static org.apache.hadoop.fs.Path
     
    (package private) byte[]
     
    private static String
     
    private static final HBaseTestingUtil
     
    private org.apache.hadoop.fs.Path
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    assertOrdering(Comparator<? super org.apache.hadoop.hbase.regionserver.HStoreFile> comparator, org.apache.hadoop.hbase.regionserver.HStoreFile... sfs)
    Assert that the given comparator orders the given storefiles in the same way that they're passed.
    private void
    bloomWriteRead(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer, org.apache.hadoop.fs.FileSystem fs)
     
    private void
    checkHalfHFile(org.apache.hadoop.hbase.regionserver.HRegionFileSystem regionFs, org.apache.hadoop.hbase.regionserver.HStoreFile f, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker sft)
     
    (package private) List<org.apache.hadoop.hbase.KeyValue>
    getKeyValueSet(long[] timestamps, int numRows, byte[] qualifier, byte[] family)
    Generate a list of KeyValues for testing based on given parameters
    private static org.apache.hadoop.hbase.regionserver.StoreFileScanner
    getStoreFileScanner(org.apache.hadoop.hbase.regionserver.StoreFileReader reader, boolean cacheBlocks, boolean pread)
     
    private org.apache.hadoop.hbase.regionserver.HStoreFile
    mockStoreFile(boolean bulkLoad, long size, long bulkTimestamp, long seqId, String path)
    Create a mock StoreFile with the given attributes.
    void
    setUp(org.junit.jupiter.api.TestInfo testInfo)
     
    private org.apache.hadoop.fs.Path
    splitStoreFile(org.apache.hadoop.hbase.regionserver.HRegionFileSystem regionFs, org.apache.hadoop.hbase.client.RegionInfo hri, String family, org.apache.hadoop.hbase.regionserver.HStoreFile sf, byte[] splitKey, boolean isTopRef, org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker sft)
     
    static void
     
    void
    Write a file and then assert that we can read from top and bottom halves using two HalfMapFiles, as well as one HalfMapFile and one HFileLink file.
    void
     
    void
     
    void
     
    void
    Check if data block encoding information is saved correctly in HFile's file info.
    void
     
    void
     
    void
     
    private void
     
    void
     
    void
     
    void
     
    void
    Test to ensure correctness when using StoreFile with multiple timestamps
    void
    Test that our mechanism of writing store files in one region to reference store files in other regions works.
    void
    This test creates an hfile and then the dir structures and files to verify that references to hfilelinks (created by snapshot clones) can be properly interpreted.
    void
    Test for HBASE-8012
    void
     
    void
     
    void
     
    static void
    writeLargeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer, byte[] fam, byte[] qualifier, int rounds)
     
    private org.apache.hadoop.hbase.regionserver.StoreFileWriter
    writeStoreFile(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf, org.apache.hadoop.fs.Path path, int numBlocks)
     
    private void
    writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer)
     
    static void
    writeStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileWriter writer, byte[] fam, byte[] qualifier)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait