-
Notifications
You must be signed in to change notification settings - Fork 728
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
schedule: fix panic when switching placement rules (#7415) #7422
schedule: fix panic when switching placement rules (#7415) #7422
Conversation
close tikv#7414 Signed-off-by: ti-chi-bot <[email protected]>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need fix conflict
Signed-off-by: Ryan Leung <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-6.1 #7422 +/- ##
===============================================
+ Coverage 75.39% 75.52% +0.12%
===============================================
Files 308 308
Lines 30591 30593 +2
===============================================
+ Hits 23063 23104 +41
+ Misses 5516 5484 -32
+ Partials 2012 2005 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, rleungx 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 |
@ti-chi-bot: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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 ti-community-infra/tichi repository. |
This is an automated cherry-pick of #7415
What problem does this PR solve?
Issue Number: Close #7414.
What is changed and how does it work?
When we going to disable the placement rule, we might first check:
pd/pkg/schedule/checker/checker_controller.go
Line 89 in 8e6dcfb
Before we change it, the value is true. But when we call:
pd/pkg/schedule/checker/checker_controller.go
Line 102 in 8e6dcfb
pd/pkg/schedule/checker/priority_inspector.go
Lines 64 to 74 in 8e6dcfb
The value can be changed to false. So the fit will be nil in this case.
Check List
Tests
Release note