Package org.apache.hadoop.hbase.wal
Class TestWALMethods
java.lang.Object
org.apache.hadoop.hbase.wal.TestWALMethods
Simple testing of a few WAL methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final org.apache.hadoop.hbase.TableNameprivate final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path testdir, String name) private org.apache.hadoop.hbase.wal.WAL.EntrycreateTestLogEntry(int i) voidvoidAssert that getSplitEditFilesSorted returns files in expected order and that it skips moved-aside files.voidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
TEST_REGION
-
TEST_TABLE
-
util
-
-
Constructor Details
-
TestWALMethods
public TestWALMethods()
-
-
Method Details
-
testServerNameFromWAL
- Throws:
Exception
-
testServerNameFromTestWAL
- Throws:
Exception
-
testGetSplitEditFilesSorted
Assert that getSplitEditFilesSorted returns files in expected order and that it skips moved-aside files.- Throws:
IOException
-
createFile
private void createFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path testdir, String name) throws IOException - Throws:
IOException
-
testRegionEntryBuffer
- Throws:
Exception
-
testEntrySink
- Throws:
Exception
-
createTestLogEntry
-
testParseServerNameFromWALName
-