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

store: lock additional store before validating image #1589

Merged
merged 1 commit into from
May 8, 2023

Conversation

flouthoc
Copy link
Collaborator

@flouthoc flouthoc commented May 3, 2023

How to verify ?
Tests from https://github.com/containers/storage/blob/main/tests/split-store.bats must pass as-is.

@rhatdan
Copy link
Member

rhatdan commented May 3, 2023

@nalind @mtrmac @vrothberg PTAL

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks! Locking changes LGTM.

I still don’t understand, and can’t find any documentation, why we need this extra write functionality only for deletes at all, (#1578 (review) ), but I guess I’l leave that to the involved parties to deal with.

store.go Outdated Show resolved Hide resolved
@flouthoc flouthoc force-pushed the address-split-store-refactor-1 branch from 095e1de to 681c3d7 Compare May 5, 2023 06:01
* We must lock store before doing any operation if its not the default
  imagestore.
* Refactor and address some comments from: containers#1578

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the address-split-store-refactor-1 branch from 681c3d7 to 7bb784e Compare May 5, 2023 06:02
@flouthoc
Copy link
Collaborator Author

flouthoc commented May 5, 2023

why we need this extra write functionality only for deletes at all

@mtrmac I'll extend this for tag/untag as well, in a new PR. Following PR is just to address the locking race ( which seemed urgent) before anybody starts using this from upstream.

@mtrmac
Copy link
Collaborator

mtrmac commented May 5, 2023

I'll extend this for tag/untag as well

(To be clear, my first impression is that we don’t need the functionality, not that we need it universally. But it’s very possible that I don’t understand the goal or problem.)

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan rhatdan merged commit fab9dde into containers:main May 8, 2023
18 checks passed
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.

None yet

4 participants