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

[v5.10, backport] storage: use race-free AddNames instead of SetNames #1518

Closed
wants to merge 2 commits into from

Conversation

flouthoc
Copy link
Contributor

@flouthoc flouthoc commented Apr 6, 2022

Backport of: #1480
Similar to: #1503

Commits from parallel builds using SetNames removes names from
storage for other builds.

Use race-free atomic AddNames to prevent breaking of parallel builds.

Needed for: BZ 2066364

Commits from parallel builds using `SetNames` removes `names` from
storage for other builds.

Use race-free atomic `AddNames` to prevent breaking of parallel builds.

Signed-off-by: Aditya R <arajan@redhat.com>
Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc marked this pull request as draft April 6, 2022 15:00
@flouthoc
Copy link
Contributor Author

flouthoc commented Apr 6, 2022

Wait for release of c/storage 1.24.9 after containers/storage#1191

@@ -31,7 +31,7 @@ require (
github.com/pquerna/ffjson v0.0.0-20190813045741-dac163c6c0a9 // indirect
github.com/sirupsen/logrus v1.7.0
github.com/stretchr/testify v1.7.0
github.com/ulikunitz/xz v0.5.9
github.com/ulikunitz/xz v0.5.10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to be explicit, this c/storage change will drag in a bit more than just AddNames. It’s still on the 1.24 branch of c/storage, so hopefully fine.

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.

ACK.

(Note that I didn’t check whether we need to backport to this branch.)

@mtrmac
Copy link
Collaborator

mtrmac commented Apr 6, 2022

@flouthoc the tests will probably need a bit (hopefully not a lot?) of updates to pass.

@flouthoc
Copy link
Contributor Author

flouthoc commented Apr 6, 2022

This is wrong backport since we are doing this for 3.4.2-rhel this might not be needed I'm closing this.

@flouthoc flouthoc closed this Apr 6, 2022
@flouthoc
Copy link
Contributor Author

flouthoc commented Apr 6, 2022

Creating a similar for v5.16.0-rhel branch

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

2 participants