Skip to content

[core] Prevent tag deletion when referenced by branches#8854

Open
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/tag-del
Open

[core] Prevent tag deletion when referenced by branches#8854
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/tag-del

Conversation

@ArnavBalyan

Copy link
Copy Markdown
Member

Purpose

  • A branch created from a tag shares the tag snapshot's data and manifest files. Deleting the tag makes the branch unqueryable.
  • Block deleteTag with an error with referencing branches, so a tag cannot be removed while a branch depends on it.
  • Make automatic tag expiration skip such tags with a warning instead, since it runs during commit and must not fail the commit.
  • Supported for FileSystemBranchManager and CatalogBranchManager.

Tests

  • UT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant