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
fix: concurrent map read and map write caused by reloading in ks-apiserver #5457
Conversation
…erver. Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
8ee5bf8
to
5f99c9f
Compare
/retest |
/lgtm /cherry-pick release-3.3 |
@wansir: once the present PR merges, I will cherry-pick it on top of release-3.3 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
LGTM label has been added. Git tree hash: 1edabd7737513ce6f744abd63e11b9f5c188a9dd
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hongzhouzi, wansir The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@wansir: new pull request created: #5464 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…erver (kubesphere#5457) fix: concurrent map read and map write caused by reloading in ks-apiserver. Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io> Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
…erver (kubesphere#5457) fix: concurrent map read and map write caused by reloading in ks-apiserver. Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io> Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
Signed-off-by: hongzhouzi hongzhouzi@kubesphere.io
What type of PR is this?
/kind bug
What this PR does / why we need it:
ks-apiserver may fail when reloading multiple times in a short period of time, because it is possibility of
concurrent map read and map write
within the AddToScheme operation.Which issue(s) this PR fixes:
Fixes # #5148
Special notes for reviewers:
Does this PR introduced a user-facing change?
Additional documentation, usage docs, etc.: