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

checker: priority to fix orphan peers (#3522) #3529

Merged
merged 5 commits into from
May 10, 2021

Conversation

ti-srebot
Copy link
Contributor

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

cherry-pick #3522 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/3529

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

git push git@github.com:ti-srebot/pd.git pr/3529:release-4.0-60508bde0819

What problem does this PR solve?

ref #3521
the problem is when offline a store, we may add learner multiple times if the operator is timeout.

What is changed and how it works?

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

Related changes

Release note

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 ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. type/cherry-pick labels Mar 25, 2021
@ti-srebot ti-srebot added this to the v4.0.12 milestone Mar 25, 2021
@ti-chi-bot ti-chi-bot requested a review from Yisaer March 25, 2021 09:33
@ti-srebot
Copy link
Contributor Author

@nolouch please accept the invitation then you can push to the cherry-pick pull requests.
https://github.com/ti-srebot/pd/invitations

@HunDunDM HunDunDM modified the milestones: v4.0.12, v4.0.13 Mar 25, 2021
@lhy1024
Copy link
Contributor

lhy1024 commented Apr 6, 2021

plz fix conflict

Signed-off-by: nolouch <nolouch@gmail.com>
@rleungx rleungx added type/cherry-pick-for-release-4.0 The PR belongs to release-4.0 cherry pick. and removed type/cherry-pick-for-release-1.0 labels Apr 25, 2021
@zhouqiang-cl zhouqiang-cl added the cherry-pick-approved Cherry pick PR approved by release team. label May 8, 2021
@nolouch
Copy link
Contributor

nolouch commented May 10, 2021

/merge

@ti-chi-bot
Copy link
Member

@nolouch: 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: fd25878

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 10, 2021
@nolouch
Copy link
Contributor

nolouch commented May 10, 2021

/rebuild

@nolouch
Copy link
Contributor

nolouch commented May 10, 2021

rebuild

@nolouch
Copy link
Contributor

nolouch commented May 10, 2021

/rebuild

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

No Coverage information No Coverage information
2.9% 2.9% Duplication

@codecov
Copy link

codecov bot commented May 10, 2021

Codecov Report

Merging #3529 (efe8dcf) into release-4.0 (a5addc4) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #3529      +/-   ##
===============================================
- Coverage        74.74%   74.61%   -0.14%     
===============================================
  Files              210      210              
  Lines            19831    19831              
===============================================
- Hits             14823    14797      -26     
- Misses            3672     3688      +16     
- Partials          1336     1346      +10     
Flag Coverage Δ
unittests 74.61% <100.00%> (-0.14%) ⬇️

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

Impacted Files Coverage Δ
server/schedule/checker/rule_checker.go 81.75% <100.00%> (ø)
pkg/tempurl/tempurl.go 60.00% <0.00%> (-10.00%) ⬇️
server/heartbeat_streams.go 65.93% <0.00%> (-6.60%) ⬇️
server/member/leader.go 63.76% <0.00%> (-6.43%) ⬇️
pkg/etcdutil/etcdutil.go 76.47% <0.00%> (-1.48%) ⬇️
server/server.go 72.84% <0.00%> (-1.33%) ⬇️
server/core/storage.go 67.53% <0.00%> (-0.87%) ⬇️
server/cluster/cluster.go 78.46% <0.00%> (-0.12%) ⬇️
server/grpc_service.go 59.87% <0.00%> (+0.40%) ⬆️
... and 2 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 a5addc4...efe8dcf. Read the comment docs.

@ti-chi-bot ti-chi-bot merged commit f1b3f49 into tikv:release-4.0 May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Cherry pick PR approved by release team. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/cherry-pick-for-release-4.0 The PR belongs to release-4.0 cherry pick.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants