Expand description
Handling drop request.
StructsΒ§
- Drop
Hook πPayload - Carries the region hook and region metadata into the background GC task so
it can fire
RegionHook::on_region_files_removedonce 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