Class TestLogsCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestLogsCleaner
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.MasterServicesprivate static final org.apache.hadoop.fs.Pathprivate static final org.apache.hadoop.fs.Pathprivate static Stringprivate static org.apache.hadoop.hbase.master.cleaner.DirScanPoolprivate org.apache.hadoop.hbase.replication.ReplicationQueueStoragefinal TableNameTestRuleprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidcreateFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path parentDir, int numOfFiles) static voidstatic voidvoidThis 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
-