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: correctly calculate the remove cost of the down peer #4213

Merged
merged 3 commits into from
Oct 15, 2021

Conversation

HunDunDM
Copy link
Member

Signed-off-by: HunDunDM hundundm@gmail.com

What problem does this PR solve?

What is changed and how it works?

schedule: correctly calculate the remove cost of the down peer

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

Release note

None

Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Oct 15, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • disksing
  • rleungx

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Oct 15, 2021
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Oct 15, 2021
@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #4213 (3ea2f60) into master (2230560) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4213      +/-   ##
==========================================
- Coverage   74.73%   74.67%   -0.07%     
==========================================
  Files         260      260              
  Lines       26690    26689       -1     
==========================================
- Hits        19947    19929      -18     
- Misses       4950     4971      +21     
+ Partials     1793     1789       -4     
Flag Coverage Δ
unittests 74.67% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/schedule/operator/influence.go 85.71% <100.00%> (ø)
server/schedule/operator/step.go 72.32% <100.00%> (-0.11%) ⬇️
server/schedulers/shuffle_hot_region.go 55.55% <0.00%> (-10.11%) ⬇️
server/id/id.go 76.19% <0.00%> (-4.77%) ⬇️
server/election/leadership.go 75.25% <0.00%> (-3.10%) ⬇️
server/schedule/operator_controller.go 82.68% <0.00%> (-1.23%) ⬇️
server/tso/tso.go 63.06% <0.00%> (-1.14%) ⬇️
server/server.go 70.95% <0.00%> (-0.90%) ⬇️
server/tso/allocator_manager.go 64.83% <0.00%> (-0.50%) ⬇️
client/client.go 72.50% <0.00%> (-0.14%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2230560...3ea2f60. Read the comment docs.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Oct 15, 2021
@disksing
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

@disksing: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5d16bd0

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Oct 15, 2021
@ti-chi-bot
Copy link
Member

@HunDunDM: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

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.

@ti-chi-bot ti-chi-bot merged commit 4e41c8d into tikv:master Oct 15, 2021
@HunDunDM HunDunDM deleted the fix-down-store-remove-cost branch October 18, 2021 03:21
HunDunDM added a commit to HunDunDM/pd that referenced this pull request Oct 18, 2021
ti-chi-bot pushed a commit that referenced this pull request Oct 18, 2021
* schedule: not limit remove peer of the down store (#4097)

Signed-off-by: HunDunDM <hundundm@gmail.com>

* schedule: correctly calculate the remove cost of the down peer (#4213)

Signed-off-by: HunDunDM <hundundm@gmail.com>
hzh0425 pushed a commit to hzh0425/pd that referenced this pull request Nov 16, 2021
…4213)

Signed-off-by: HunDunDM <hundundm@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: hzh0425 <642256541@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants