Package org.apache.hadoop.hbase.wal
Class TestRecoveredEditsOutputSink
java.lang.Object
org.apache.hadoop.hbase.wal.TestRecoveredEditsOutputSink
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.fs.FileSystem
private static org.apache.hadoop.hbase.wal.RecoveredEditsOutputSink
private static org.apache.hadoop.fs.Path
private static final HBaseTestingUtil
private static org.apache.hadoop.hbase.wal.WALFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
void
void
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.void
When 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
-