Skip to content

[v26.1.x] iceberg: purge data files when dropping table with purge=true#30698

Merged
wdberkeley merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:ai-backport-pr-30691-v26.1.x-1780501957
Jun 3, 2026
Merged

[v26.1.x] iceberg: purge data files when dropping table with purge=true#30698
wdberkeley merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:ai-backport-pr-30691-v26.1.x-1780501957

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30691

  • Command: git cherry-pick -x 3b6585e
  • Commits backported: 1
  • Conflicts resolved: 1
  • Commits skipped (already on target): 0
  • Backport branch: ai-backport-pr-30691-v26.1.x-1780501957

Conflict details

  • 3b6585e (src/v/iceberg/tests/filesystem_catalog_test.cc): conflict in the include block — the target branch carries extra includes (iceberg/transform.h, json/document.h) not present on the source, while the commit adds utils/retry_chain_node.h. Resolved by keeping all three includes.

Previously `filesystem_catalog::drop_table` ignored the `purge`
parameter and only deleted files under `metadata/`, leaving data files,
manifests, and manifest lists intact.

With purge=true, delete everything under the table location (which
covers metadata, manifests, manifest lists, and data files). With
purge=false, preserve the existing behavior of only removing catalog
metadata.

(cherry picked from commit 3b6585e)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Jun 3, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 3, 2026
@vbotbuildovich vbotbuildovich requested a review from wdberkeley June 3, 2026 15:53
@wdberkeley wdberkeley merged commit 6cd3278 into redpanda-data:v26.1.x Jun 3, 2026
21 of 22 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v26.1.x-next, v26.1.10 Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants