Skip to main content

Module handle_drop

Module handle_drop 

Source
Expand description

Handling drop request.

StructsΒ§

DropHookPayload πŸ”’
Carries the region hook and region metadata into the background GC task so it can fire RegionHook::on_region_files_removed once the dropped region’s directory is physically deleted.

ConstantsΒ§

GC_TASK_INTERVAL_SEC πŸ”’
MAX_RETRY_TIMES πŸ”’

FunctionsΒ§

cleanup_region_file_artifacts πŸ”’
Cleans files and caches that are produced at runtime but are not part of the primary region directory deletion.
later_drop_task_with_global_gc πŸ”’
later_drop_task_without_global_gc πŸ”’
Background GC task to remove the entire region path once one of the following conditions is true:
remove_region_dir_for_full_drop πŸ”’
Removes a region directory for full-drop style cleanup.
remove_region_dir_once πŸ”’
Removes region dir if there is no parquet files, returns whether the directory is removed. If force = true, always removes the dir.
remove_region_with_retry πŸ”’
should_force_remove_region_dir πŸ”’