Package org.apache.hadoop.hbase.wal
Class TestRecoveredEditsOutputSink
java.lang.Object
org.apache.hadoop.hbase.wal.TestRecoveredEditsOutputSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.fs.FileSystemprivate static org.apache.hadoop.hbase.wal.RecoveredEditsOutputSinkprivate static org.apache.hadoop.fs.Pathprivate static final HBaseTestingUtilprivate static org.apache.hadoop.hbase.wal.WALFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidvoidvoidWhen finishWriterThreads fails but does not throw an exception, ensure the writers are handled like in the exception case - the writers are closed but the recoveredEdits WAL files are not renamed.voidWhen a WAL split is interrupted (ex.
-
Field Details
-
CLASS_RULE
-
wals
-
fs
-
rootDir
-
TEST_UTIL
-
outputSink
-
-
Constructor Details
-
TestRecoveredEditsOutputSink
public TestRecoveredEditsOutputSink()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testCloseSuccess
- Throws:
IOException
-
testCloseWALSplitInterrupted
When a WAL split is interrupted (ex. by a RegionServer abort), the thread join in finishWriterThreads() will get interrupted, rethrowing the exception without stopping the writer threads. Test to ensure that when this happens, RecoveredEditsOutputSink.close() does not rename the recoveredEdits WAL files as this can cause corruption. Please see HBASE-28569. However, the writers must still be closed.- Throws:
IOException
-
testCloseWALFinishWriterThreadsFailed
When finishWriterThreads fails but does not throw an exception, ensure the writers are handled like in the exception case - the writers are closed but the recoveredEdits WAL files are not renamed.- Throws:
IOException
-