public class TestWALEntryStream extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
TestWALEntryStream.PathWatcher |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hdfs.MiniDFSCluster |
cluster |
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.hbase.client.RegionInfo |
info |
private org.apache.hadoop.hbase.wal.WAL |
log |
private org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl |
mvcc |
private TestWALEntryStream.PathWatcher |
pathWatcher |
private static byte[] |
qualifier |
private static NavigableMap<byte[],Integer> |
scopes |
private static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
tn |
(package private) PriorityBlockingQueue<org.apache.hadoop.fs.Path> |
walQueue |
| Constructor and Description |
|---|
TestWALEntryStream() |
| Modifier and Type | Method and Description |
|---|---|
private void |
appendEntriesToLog(int count) |
private void |
appendToLog() |
private void |
appendToLog(String key) |
private void |
appendToLogPlus(int count) |
private org.apache.hadoop.hbase.replication.WALEntryFilter |
getDummyFilter() |
private String |
getRow(org.apache.hadoop.hbase.wal.WAL.Entry entry) |
private static NavigableMap<byte[],Integer> |
getScopes() |
private org.apache.hadoop.hbase.wal.WALEdit |
getWALEdit(String row) |
private org.apache.hadoop.hbase.wal.WALEdit |
getWALEdits(int count) |
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testAppendsWithRolls()
Tests basic reading of log appends
|
void |
testDifferentCounts() |
void |
testEmptyStream() |
void |
testLogrollWhileStreaming()
Tests that if after a stream is opened, more entries come in and then the log is rolled, we
don't mistakenly dequeue the current log thinking we're done with it
|
void |
testNewEntriesWhileStreaming()
Tests that if writes come in while we have a stream open, we shouldn't miss them
|
void |
testPosition()
Tests that if we stop before hitting the end of a stream, we can continue where we left off
using the last position
|
void |
testReadBeyondCommittedLength() |
void |
testReplicationSourceWALReaderThread() |
void |
testResumeStreamingFromPosition() |
public static final HBaseClassTestRule CLASS_RULE
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.fs.FileSystem fs
private static org.apache.hadoop.hdfs.MiniDFSCluster cluster
private static final org.apache.hadoop.hbase.TableName tableName
private static final byte[] family
private static final byte[] qualifier
private static final org.apache.hadoop.hbase.client.RegionInfo info
private static final NavigableMap<byte[],Integer> scopes
private org.apache.hadoop.hbase.wal.WAL log
PriorityBlockingQueue<org.apache.hadoop.fs.Path> walQueue
private TestWALEntryStream.PathWatcher pathWatcher
public org.junit.rules.TestName tn
private final org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControl mvcc
public TestWALEntryStream()
private static NavigableMap<byte[],Integer> getScopes()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testDifferentCounts() throws Exception
Exceptionpublic void testAppendsWithRolls() throws Exception
Exceptionpublic void testLogrollWhileStreaming() throws Exception
Exceptionpublic void testNewEntriesWhileStreaming() throws Exception
Exceptionpublic void testResumeStreamingFromPosition() throws Exception
Exceptionpublic void testPosition() throws Exception
Exceptionpublic void testEmptyStream() throws Exception
Exceptionpublic void testReplicationSourceWALReaderThread() throws Exception
Exceptionprivate void appendToLog(String key) throws IOException
IOExceptionprivate void appendEntriesToLog(int count) throws IOException
IOExceptionprivate void appendToLog() throws IOException
IOExceptionprivate void appendToLogPlus(int count) throws IOException
IOExceptionprivate org.apache.hadoop.hbase.wal.WALEdit getWALEdits(int count)
private org.apache.hadoop.hbase.wal.WALEdit getWALEdit(String row)
private org.apache.hadoop.hbase.replication.WALEntryFilter getDummyFilter()
public void testReadBeyondCommittedLength() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.