-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
e3f368c
to
882208d
Compare
solver/llbsolver/history.go
Outdated
@@ -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))}) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
882208d
to
0c37d9d
Compare
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
0c37d9d
to
2c10f56
Compare
follow-up moby/moby#48565 (comment)