Skip to content

HIVE-29587: Cleanup acid table dir after async drop#6459

Open
VenuReddy2103 wants to merge 1 commit intoapache:masterfrom
VenuReddy2103:HIVE-29587
Open

HIVE-29587: Cleanup acid table dir after async drop#6459
VenuReddy2103 wants to merge 1 commit intoapache:masterfrom
VenuReddy2103:HIVE-29587

Conversation

@VenuReddy2103
Copy link
Copy Markdown
Contributor

@VenuReddy2103 VenuReddy2103 commented Apr 30, 2026

What changes were proposed in this pull request?

Added a new compaction type(DEFERRED_CLEANUP). It is used while adding a row to compaction queue table when table is soft deleted.

Why are the changes needed?

When drop acid table is followed by drop database cascade operation, the acid table directory itself is never deleted. Hence managed database directory is also never deleted. Orphaned table and database directories remaining indefinitely in the filesystem, leading to potential storage bloat and inconsistencies between HMS metadata and filesystem state

Does this PR introduce any user-facing change?

No

How was this patch tested?

Tested manually

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 1, 2026

@VenuReddy2103 VenuReddy2103 changed the title [WIP]HIVE-29587: Cleanup acid table dir after async drop HIVE-29587: Cleanup acid table dir after async drop May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants