Class KillCompactionConfig
java.lang.Object
org.apache.druid.server.coordinator.duty.MetadataCleanupDuty
org.apache.druid.server.coordinator.duty.KillCompactionConfig
- All Implemented Interfaces:
CoordinatorDuty
CoordinatorDuty for automatic deletion of compaction configurations from the config table in metadata storage.
Note that this will delete compaction configuration for inactive datasources
(datasource with no used and unused segments) immediately.
-
Constructor Summary
ConstructorsConstructorDescriptionKillCompactionConfig(MetadataCleanupConfig config, IndexerMetadataStorageCoordinator storageCoordinator, CoordinatorConfigManager configManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcleanupEntriesCreatedBefore(org.joda.time.DateTime minCreatedTime) Cleans up metadata entries created before theminCreatedTime.Methods inherited from class org.apache.druid.server.coordinator.duty.MetadataCleanupDuty
getCurrentTime, run
-
Constructor Details
-
KillCompactionConfig
public KillCompactionConfig(MetadataCleanupConfig config, IndexerMetadataStorageCoordinator storageCoordinator, CoordinatorConfigManager configManager)
-
-
Method Details
-
cleanupEntriesCreatedBefore
protected int cleanupEntriesCreatedBefore(org.joda.time.DateTime minCreatedTime) Description copied from class:MetadataCleanupDutyCleans up metadata entries created before theminCreatedTime.This method is not invoked if the
cleanupPeriodhas not elapsed since theMetadataCleanupDuty.lastCleanupTime.- Specified by:
cleanupEntriesCreatedBeforein classMetadataCleanupDuty- Returns:
- Number of deleted metadata entries
-