public class TestWALRecordReader extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static byte[] |
family |
private static org.apache.hadoop.fs.FileSystem |
fs |
private static org.apache.hadoop.fs.Path |
hbaseDir |
(package private) static org.apache.hadoop.hbase.client.RegionInfo |
info |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.fs.Path |
logDir |
protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl |
mvcc |
private static byte[] |
rowName |
protected static NavigableMap<byte[],Integer> |
scopes |
(package private) static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
private static byte[] |
value |
private static org.apache.hadoop.fs.FileSystem |
walFs |
private static org.apache.hadoop.fs.Path |
walRootDir |
Constructor and Description |
---|
TestWALRecordReader() |
Modifier and Type | Method and Description |
---|---|
private static String |
getName() |
private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey> |
getReader() |
private static String |
getServerName() |
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 |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testPartialRead()
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 |
testWALRecordReader()
Test basic functionality
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.fs.Path hbaseDir
private static org.apache.hadoop.fs.FileSystem walFs
private static org.apache.hadoop.fs.Path walRootDir
static final org.apache.hadoop.hbase.TableName tableName
private static final byte[] rowName
static final org.apache.hadoop.hbase.client.RegionInfo info
private static final byte[] family
private static final byte[] value
private static org.apache.hadoop.fs.Path logDir
protected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc
protected static NavigableMap<byte[],Integer> scopes
public TestWALRecordReader()
private static String getServerName()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testPartialRead() throws Exception
Exception
public void testWALRecordReader() throws Exception
Exception
protected org.apache.hadoop.hbase.wal.WALKeyImpl getWalKeyImpl(long time, NavigableMap<byte[],Integer> scopes)
private org.apache.hadoop.hbase.mapreduce.WALInputFormat.WALRecordReader<org.apache.hadoop.hbase.wal.WALKey> getReader()
private void testSplit(org.apache.hadoop.mapreduce.InputSplit split, byte[]... columns) throws Exception
Exception
private void testSplitWithMovingWAL(org.apache.hadoop.mapreduce.InputSplit split, byte[] col1, byte[] col2) throws Exception
Exception
private org.apache.hadoop.fs.Path getWALArchiveDir(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.