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

fix: don't set vm entry as nil in cache when vm is in Deleting state to avoid VMSSList throttling #2060

Merged

Conversation

andyzhangx
Copy link
Member

@andyzhangx andyzhangx commented Jul 20, 2022

What type of PR is this?

/kind bug

What this PR does / why we need it:

fix: don't set vm entry as nil in cache when vm is in Deleting state to avoid VMSSList throttling
When VM is in Deleting state, original behavior is setting as nil, and then with this PR(#1578), Deleting state VM will be not found in cache, then it would trigger VMSSList again, found VM is still in Deleting state, return nil, trigger VMSSList again and again, finally get VMSSList throttling.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

fix: don't set vm entry as nil in cache when vm is in Deleting state to avoid VMSSList throttling

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

fix: don't set vm entry as nil in cache when vm is in Deleting state to avoid VMSSList throttling

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 20, 2022
@netlify
Copy link

netlify bot commented Jul 20, 2022

Deploy Preview for kubernetes-sigs-cloud-provide-azure canceled.

Name Link
🔨 Latest commit a1027fb
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cloud-provide-azure/deploys/62d77749d1e587000a558e96

@netlify
Copy link

netlify bot commented Jul 20, 2022

Deploy Preview for warm-cascaron-bb779f canceled.

Name Link
🔨 Latest commit a1027fb
🔍 Latest deploy log https://app.netlify.com/sites/warm-cascaron-bb779f/deploys/62d77749c9eb4500088a335b

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 20, 2022
@andyzhangx andyzhangx changed the title fix: don't set vm entry as nil when vm is in Deleting state to avoid VMSSList throttling fix: don't set vm entry as nil in cache when vm is in Deleting state to avoid VMSSList throttling Jul 20, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 20, 2022
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 79.808% when pulling 5272185bab3739d696c919183b657ec40da0002d on andyzhangx:deleting-set-nil-issue into 8ffd413 on kubernetes-sigs:master.

@andyzhangx
Copy link
Member Author

/assign @nilo19 @MartinForReal

@andyzhangx
Copy link
Member Author

/retest

2 similar comments
@andyzhangx
Copy link
Member Author

/retest

@andyzhangx
Copy link
Member Author

/retest

@MartinForReal
Copy link
Contributor

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants