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

schedule: fix store maybe always overloaded #1586

Merged
merged 5 commits into from Jun 20, 2019
Merged

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Jun 17, 2019

What problem does this PR solve?

There are some cases which will cause the PD cannot generate operator since the store could be always overloaded and be filtered in the end.

What is changed and how it works?

This PR fixes this problem by removing reset logic.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release notes

@rleungx rleungx added type/bug The issue is confirmed as a bug. component/schedule Scheduling logic. needs-cherry-pick-release-3.0 The PR needs to cherry pick to release-3.0 branch. labels Jun 17, 2019
@rleungx rleungx requested review from nolouch, disksing and shafreeck and removed request for nolouch June 18, 2019 03:09
@disksing
Copy link
Contributor

ooh, IMO the solution looks too tricky to understand. Is it possible to simply add a method IsStoreOverload to cluster?

@rleungx
Copy link
Member Author

rleungx commented Jun 18, 2019

Hmmm... Do we still need the overloaded state in store? If so, we may still need to reset this state.

@disksing
Copy link
Contributor

No need the state. Just use Cluster to create the Filter, I'm not sure if it can work out.

Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
@nolouch nolouch merged commit 6965066 into tikv:master Jun 20, 2019
rleungx added a commit to rleungx/pd that referenced this pull request Jun 20, 2019
* fix store maybe always overloaded

Signed-off-by: Ryan Leung <rleungx@gmail.com>
disksing pushed a commit that referenced this pull request Jun 20, 2019
* fix store maybe always overloaded

Signed-off-by: Ryan Leung <rleungx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/schedule Scheduling logic. needs-cherry-pick-release-3.0 The PR needs to cherry pick to release-3.0 branch. type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants