Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] OrphanFilesClean now support branches #3970

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

tsreaper
Copy link
Contributor

Purpose

Currently OrphanFilesClean cannot handle data files created from branches and will mistakenly delete them. This PR modifies OrphanFilesClean so that it can support data from branches.

Tests

IT cases.

API and Format

No format changes.

Documentation

No new feature.

for (String branch : branches) {
FileStoreTable branchTable = table;
if (!BranchManager.DEFAULT_MAIN_BRANCH.equals(branch)) {
TableSchema branchSchema =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should extract a method to create branch table.

@JingsongLi
Copy link
Contributor

+1

@JingsongLi JingsongLi merged commit 9791e09 into apache:master Aug 16, 2024
10 checks passed
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.

2 participants