Class TestWALRecordReader

java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestWALRecordReader

public class TestWALRecordReader extends Object
JUnit tests for the WALRecordReader
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HBaseClassTestRule
     
    private static org.apache.hadoop.conf.Configuration
     
    private static final byte[]
     
    private static org.apache.hadoop.fs.FileSystem
     
    private static org.apache.hadoop.fs.Path
     
    (package private) static final org.apache.hadoop.hbase.client.RegionInfo
     
    private static final org.slf4j.Logger
     
    private static org.apache.hadoop.fs.Path
     
    protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl
     
    private static final byte[]
     
    protected static NavigableMap<byte[],Integer>
     
    (package private) static final org.apache.hadoop.hbase.TableName
     
    private static final HBaseTestingUtil
     
    private static final byte[]
     
    private static org.apache.hadoop.fs.FileSystem
     
    private static org.apache.hadoop.fs.Path
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
     
    private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey>
     
    private static String
     
    private org.apache.hadoop.fs.Path
    getWALArchiveDir(org.apache.hadoop.conf.Configuration conf)
     
    protected org.apache.hadoop.hbase.wal.WALKeyImpl
    getWalKeyImpl(long time, NavigableMap<byte[],Integer> scopes)
     
    void
     
    static void
     
    static void
     
    void
    Test partial reads from the WALs based on passed time range.
    private void
    testSplit(org.apache.hadoop.mapreduce.InputSplit split, byte[]... columns)
    Create a new reader from the split, and match the edits against the passed columns.
    private void
    testSplitWithMovingWAL(org.apache.hadoop.mapreduce.InputSplit split, byte[] col1, byte[] col2)
    Create a new reader from the split, match the edits against the passed columns, moving WAL to archive in between readings
    void
    Test basic functionality
    void
    Test WALRecordReader tolerance to moving WAL from active to archive directory

    Methods inherited from class java.lang.Object

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