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

fix(replica): best-effort to delete old head disk file #1174

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

derekbit
Copy link
Member

@derekbit derekbit commented Aug 6, 2024

Which issue(s) this PR fixes:

Issue longhorn/longhorn#9168

What this PR does / why we need it:

The deletion of old head disk file is a best-effort task, and the failure should not hinder the following tasks.

The regression is caused by the commit.

Special notes for your reviewer:

Additional documentation or context

@derekbit
Copy link
Member Author

derekbit commented Aug 6, 2024

@mergify backport v1.7.x

Copy link

mergify bot commented Aug 6, 2024

backport v1.7.x

✅ Backports have been created

@derekbit derekbit force-pushed the issue-9168 branch 2 times, most recently from 933a89e to 302c612 Compare August 6, 2024 06:42
@derekbit derekbit requested a review from c3y1huang August 6, 2024 06:44
The deletion of old head disk file is a best-effort task, and
the failure should not hinder the following tasks.

Longhorn 9168

Signed-off-by: Derek Su <derek.su@suse.com>
Copy link
Contributor

@ChanYiLin ChanYiLin left a comment

Choose a reason for hiding this comment

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

LGTM!

@mergify mergify bot merged commit 19d3962 into longhorn:master Aug 6, 2024
11 checks passed
@innobead
Copy link
Member

innobead commented Aug 6, 2024

Does this mean there would be chances to have orphaned old head snapshot img?

@derekbit
Copy link
Member Author

derekbit commented Aug 6, 2024

Does this mean there would be chances to have orphaned old head snapshot img?

Yes, need a manual intervention for the deletion.

@derekbit
Copy link
Member Author

@mergify backport v1.6.x

Copy link

mergify bot commented Sep 12, 2024

backport v1.6.x

✅ Backports have been created

@derekbit
Copy link
Member Author

derekbit commented Sep 12, 2024

@mergify backport v1.6.x

Backporting to v1.6.x is necessary, because the bug is also in v1.6.x.

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.

3 participants