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

history: remove records without attached blobs at startup #5378

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max marked this pull request as ready for review October 1, 2024 15:54
@crazy-max crazy-max added this to the v0.16.1 milestone Oct 1, 2024
@@ -298,13 +300,28 @@ func (h *HistoryQueue) gc() error {
if br.Pinned {
return nil
}
records = append(records, &br)
recs, err := h.hLeaseManager.ListResources(ctx, leases.Lease{ID: h.leaseID(string(key))})
Copy link
Member

Choose a reason for hiding this comment

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

Can we do this only for the first time, to validate if something went wrong in between restarts.

We should also print a warning to daemon logs if we find such a case.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@thompson-shaun thompson-shaun modified the milestones: v0.16.1, v0.17.0 Oct 1, 2024
@crazy-max crazy-max changed the title history: remove records without attached blobs during gc history: remove records without attached blobs at startup Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants