-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
avoid sharedIndexInformer run more than once, avoid more cache and me… #104853
avoid sharedIndexInformer run more than once, avoid more cache and me… #104853
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Hi @kitianFresh. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
c1f5635
to
305c13f
Compare
/ok-to-test |
@kitianFresh: Cannot trigger testing until a trusted user reviews the PR and leaves an 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. |
/sig api-machinery |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think we should avoid the user to run the informer more than once because some times the user maybe use the informer by wrong way, we should avoid this condition. if we do not, the informer may run many times but the program is ok, but the resource consume and program is not ok, you can not found the reason. |
/triage accepted |
/release-note-none /lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kitianFresh, wojtek-t 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
Thanks for reviewing. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
avoid the informer to be run more than once by return explict error or by some check
Which issue(s) this PR fixes:
following code has some bug, because the nodeInformer will start more than once, then there will be two reflectors, two DeltaFIFOs, and two goroutines to list watch nodes data, and it can run normally but it will consume more resources.
we should avoid the informer to be run more than once by return explict error or by some check
Does this PR introduce a user-facing change?
NO