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

image, layers, container: append new names to the ones which were written before and dedupe #1152

Closed
wants to merge 1 commit into from

Conversation

flouthoc
Copy link
Collaborator

We are deleting names which were already written in store.

This creates faulty behavior when builds are invoked in parallel manner, as
this removes names for other builds.

To fix this behavior we must append to already written names and
override if needed.

Following patch fixes concurrent builds via podman or buildah.

See: containers/buildah#3794 for more details.

…tten

We are deleting names which were already written in store.

This creates faulty behviour when builds are invoked in parallel manner, as
this removes names for other builds.

To fix this behviour we must append to already written names and
override if needed.

Following patch fixes concurrent builds via podman or buildah.

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc marked this pull request as draft February 23, 2022 09:36
@giuseppe
Copy link
Member

I think we need a new function to expose the functionality, otherwise it is a breaking change.

Maybe AppendNames?

@flouthoc
Copy link
Collaborator Author

flouthoc commented Feb 23, 2022

Yes, This is breaking change, this PR must be replaced with SetNamesWithOptions and all the podman,buildah etc and dependent code must use that, where deletion is not needed e.g concurrent builds, tagging etc.

@flouthoc
Copy link
Collaborator Author

@giuseppe I'm closing this PR since i have few tests on this branch and created and final one which is here: #1153

@flouthoc flouthoc closed this Feb 23, 2022
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.

2 participants