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

Prune contract-sector links from the db if a host can't find the sector #643

Merged
merged 12 commits into from
Oct 6, 2023

Conversation

ChrisSchinnerl
Copy link
Member

To make sure a sector that a host lost doesn't prevent renterd from performing migrations this PR adds pruning to the db. This doesn't relief the host from its duty to store the sector. It only tells the autopilot that the health of the slab is getting worse.

@ChrisSchinnerl ChrisSchinnerl self-assigned this Oct 4, 2023
@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review October 4, 2023 13:42
api/bus.go Outdated
@@ -722,3 +722,8 @@ type AddPartialSlabResponse struct {
func FormatETag(ETag string) string {
Copy link
Member Author

Choose a reason for hiding this comment

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

Leaving a comment to prevent this from getting merged by accident. After approval I'd like to test it on a node before merging.

bus/bus.go Outdated Show resolved Hide resolved
stores/metadata.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit d55b609 into master Oct 6, 2023
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/mark-sector-lost branch October 6, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants