Class ManifestFileCleanupTaskHandler

java.lang.Object
org.apache.polaris.service.task.FileCleanupTaskHandler
org.apache.polaris.service.task.ManifestFileCleanupTaskHandler
All Implemented Interfaces:
TaskHandler

public class ManifestFileCleanupTaskHandler extends FileCleanupTaskHandler
ManifestFileCleanupTaskHandler responsible for deleting all the files in a manifest and the manifest itself. Since data files may be present in multiple manifests across different snapshots, we assume a data file that doesn't exist is missing because it was already deleted by another task.
  • Constructor Details

  • Method Details

    • canHandleTask

      public boolean canHandleTask(org.apache.polaris.core.entity.TaskEntity task)
      Specified by:
      canHandleTask in interface TaskHandler
      Specified by:
      canHandleTask in class FileCleanupTaskHandler
    • handleTask

      public void handleTask(org.apache.polaris.core.entity.TaskEntity task, org.apache.polaris.core.context.CallContext callContext)
      Description copied from class: FileCleanupTaskHandler
      Handles the provided task. A normal return indicates success and the task entity will be dropped; throwing indicates failure and triggers the task retry path.
      Specified by:
      handleTask in interface TaskHandler
      Specified by:
      handleTask in class FileCleanupTaskHandler