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

cluster: save to the region cache when pending-peers or down-peers change (#3462) #3471

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Mar 12, 2021

cherry-pick #3462 to release-4.0
You can switch your code base to this Pull Request by using git-extras:

# In pd repo:
git pr https://github.com/tikv/pd/pull/3471

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/pd.git pr/3471:release-4.0-b1ba2d01663f

What problem does this PR solve?

close #3456

What is changed and how it works?

  • Before: save to the region cache when pending-peers or down-peers exists
  • After: save to the region cache when pending-peers or down-peers change

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • save to the region cache when pending-peers or down-peers change

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has not been approved.

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 writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-srebot
Copy link
Contributor Author

@HunDunDM you're already a collaborator in bot's repo.

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

/merge

@ti-chi-bot
Copy link
Member

@HunDunDM: 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: 504232a

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

@ti-srebot: 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.

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #3471 (797dcde) into release-4.0 (ff6c0d2) will decrease coverage by 0.50%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #3471      +/-   ##
===============================================
- Coverage        75.10%   74.60%   -0.51%     
===============================================
  Files              209      209              
  Lines            19790    19809      +19     
===============================================
- Hits             14864    14778      -86     
- Misses            3586     3693     +107     
+ Partials          1340     1338       -2     
Flag Coverage Δ
unittests 74.60% <100.00%> (-0.51%) ⬇️

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

Impacted Files Coverage Δ
server/cluster/cluster.go 78.10% <100.00%> (-2.68%) ⬇️
server/core/region.go 92.38% <100.00%> (+0.29%) ⬆️
server/core/region_option.go 83.33% <100.00%> (+0.40%) ⬆️
server/statistics/store_collection.go 58.53% <0.00%> (-34.96%) ⬇️
pkg/errs/errs.go 75.00% <0.00%> (-25.00%) ⬇️
server/schedulers/shuffle_hot_region.go 56.88% <0.00%> (-11.93%) ⬇️
server/region_syncer/server.go 79.38% <0.00%> (-9.93%) ⬇️
server/kv/etcd_kv.go 69.56% <0.00%> (-7.25%) ⬇️
server/region_syncer/client.go 78.74% <0.00%> (-4.73%) ⬇️
pkg/dashboard/adapter/manager.go 81.52% <0.00%> (-3.27%) ⬇️
... and 13 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 ff6c0d2...797dcde. Read the comment docs.

@HunDunDM
Copy link
Member

/rebuild

@ti-chi-bot ti-chi-bot merged commit 3f81ab7 into tikv:release-4.0 Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/cluster Cluster logic. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants