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

Use RWMutex in NSMap and reduce lock area #8684

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

djdongjin
Copy link
Member

This PR makes minor changes to the NSMap:

  1. Change Mutex to RWMutex.
  2. Move mu.(R)Lock down to right before accessing objects.

Please feel free to lmk if such change is necessary :) thanks!

@k8s-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@djdongjin djdongjin marked this pull request as ready for review June 13, 2023 17:31
@djdongjin
Copy link
Member Author

cc @mxpv PTAL thanks!

@dcantah
Copy link
Member

dcantah commented Jun 13, 2023

Linux failure is known afair, windows... I'm not sure what is going on

@estesp
Copy link
Member

estesp commented Jun 13, 2023

Maybe the MS registry finally updated to get rid of the deprecated nondistributable media type?

                              expected: "application/vnd.oci.image.layer.nondistributable.v1.tar"
                                actual: "application/vnd.oci.image.layer.v1.tar"

The OCI upstream change went into rc3 of the v1.1.0 spec: opencontainers/image-spec@ccb86b9

@dcantah
Copy link
Member

dcantah commented Jun 13, 2023

@estesp https://techcommunity.microsoft.com/t5/containers/announcing-removal-of-foreign-layers-from-windows-container/ba-p/3846833, you might be on to something haha

Signed-off-by: Jin Dong <djdongjin95@gmail.com>
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.

6 participants