schedule: fix panic when switching placement rules (#7415)#7423
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
|
[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. DetailsReviewer can indicate their review by submitting an approval review. |
|
/merge |
|
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
DetailsInstructions 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 pull request has been accepted and is ready to merge. DetailsCommit hash: fd4ef1c |
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