Skip to content

history: remove records without attached blobs at startup#5378

Merged
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:history-prune-orphans
Oct 2, 2024
Merged

history: remove records without attached blobs at startup#5378
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:history-prune-orphans

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max force-pushed the history-prune-orphans branch from e3f368c to 882208d Compare October 1, 2024 15:25
@crazy-max crazy-max marked this pull request as ready for review October 1, 2024 15:54
@crazy-max crazy-max requested a review from tonistiigi October 1, 2024 15:54
@crazy-max crazy-max added this to the v0.16.1 milestone Oct 1, 2024
Comment thread solver/llbsolver/history.go Outdated
return nil
}
records = append(records, &br)
recs, err := h.hLeaseManager.ListResources(ctx, leases.Lease{ID: h.leaseID(string(key))})
Copy link
Copy Markdown
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
Copy Markdown
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 force-pushed the history-prune-orphans branch from 882208d to 0c37d9d Compare October 2, 2024 11:11
@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
@crazy-max crazy-max requested a review from tonistiigi October 2, 2024 11:11
@crazy-max crazy-max force-pushed the history-prune-orphans branch from 0c37d9d to 2c10f56 Compare October 2, 2024 11:12
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