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

placement: fix placement location issue #2603

Merged
merged 3 commits into from
Jul 2, 2020

Conversation

disksing
Copy link
Contributor

@disksing disksing commented Jul 1, 2020

What problem does this PR solve?

Fix #2601

What is changed and how it works?

Use DistinctScore way to compare placements.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Fix the issue that when enable placement rules, sometimes replicas of region may not be able to adjust to the best location

Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
@disksing disksing added type/bugfix This PR fixes a bug. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. component/placement Placement rule. labels Jul 1, 2020
@disksing disksing added this to the v4.0.3 milestone Jul 1, 2020
Signed-off-by: disksing <i@disksing.com>
@disksing
Copy link
Contributor Author

disksing commented Jul 2, 2020

Please take another look. @lhy1024 @JmPotato

@JmPotato
Copy link
Member

JmPotato commented Jul 2, 2020

LGTM

@ti-srebot
Copy link
Contributor

@JmPotato, Thanks for your review, however we are sorry that your vote won't be count. You are not a reviewer or committer or co-leader or leader for the related sigs:scheduling(slack).

@JmPotato JmPotato merged commit 17698e9 into tikv:master Jul 2, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #2605

@disksing disksing deleted the placement-location branch July 2, 2020 12:35
ti-srebot added a commit that referenced this pull request Jul 3, 2020
Signed-off-by: disksing <i@disksing.com>
@lhy1024 lhy1024 removed this from the v4.0.3 milestone Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/placement Placement rule. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Location awareness of Placement Rules works different from LocationLabels
4 participants