Class StoreBackupVersionCleanupService

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class StoreBackupVersionCleanupService
    extends AbstractVeniceService
    This service is in charge of cleaning up backup versions based on retention policy defined on store basis. If it is not specified, the retention policy will be controlled by config: ConfigKeys.CONTROLLER_BACKUP_VERSION_DEFAULT_RETENTION_MS. The backup versions will become eligible for removal if the latest current version has been promoted for more than configured retention time period. If the specified retention time is 0, this service won't delete the backup version right after the latest version is promoted to the new current version since there could be a delay before Routers receive the new version promotion notification. Currently, the minimal retention time is hard-coded as 1 hour here: MINIMAL_BACKUP_VERSION_CLEANUP_DELAY to accommodate the delay between Controller and Router.