Class TestLogsCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestLogsCleaner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.MasterServices
private static final org.apache.hadoop.fs.Path
private static final org.apache.hadoop.fs.Path
private static String
private static org.apache.hadoop.hbase.master.cleaner.DirScanPool
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage
final TableNameTestRule
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
createFiles
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) static void
static void
void
This tests verifies LogCleaner works correctly with WALs and Procedure WALs located in the same oldWALs directory.void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
OLD_WALS_DIR
-
OLD_PROCEDURE_WALS_DIR
-
conf
-
POOL
-
peerId
-
masterServices
-
queueStorage
-
tableNameRule
-
-
Constructor Details
-
TestLogsCleaner
public TestLogsCleaner()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
beforeTest
- Throws:
Exception
-
testLogCleaning
This tests verifies LogCleaner works correctly with WALs and Procedure WALs located in the same oldWALs directory. Created files:- 2 invalid files
- 5 old Procedure WALs
- 30 old WALs from which 3 are in replication
- 5 recent Procedure WALs
- 1 recent WAL
- 1 very new WAL (timestamp in future)
- masterProcedureWALs subdirectory
- 3 replication WALs
- 2 new WALs
- 5 latest Procedure WALs
- masterProcedureWALs subdirectory
- Throws:
Exception
-
testOnConfigurationChange
- Throws:
Exception
-
createFiles
private void createFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) throws IOException - Throws:
IOException
-