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

*: fix scheduling can not immediately start after transfer leader (#4875) #4970

Merged

Conversation

ti-chi-bot
Copy link
Member

This is an automated cherry-pick of #4875

Signed-off-by: Ryan Leung rleungx@gmail.com

What problem does this PR solve?

Issue Number: Close #4769.

What is changed and how does it work?

This PR uses the flag to distinguish if the region's heartbeat is new when transferring the PD leader.

Check List

Tests

  • Unit test

Release note

Fix the issue that scheduling cannot immediately start after PD leader transfers

close tikv#4769

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot
Copy link
Member Author

ti-chi-bot commented May 17, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nolouch
  • 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.

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx rleungx force-pushed the cherry-pick-4875-to-release-5.4 branch from 462492b to e6d635f Compare May 30, 2022 05:43
Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx rleungx force-pushed the cherry-pick-4875-to-release-5.4 branch from e6d635f to f3877ab Compare May 30, 2022 05:50
@codecov
Copy link

codecov bot commented May 30, 2022

Codecov Report

Merging #4970 (07a24c2) into release-5.4 (9473328) will increase coverage by 0.14%.
The diff coverage is 88.00%.

@@               Coverage Diff               @@
##           release-5.4    #4970      +/-   ##
===============================================
+ Coverage        74.84%   74.99%   +0.14%     
===============================================
  Files              265      265              
  Lines            27976    27989      +13     
===============================================
+ Hits             20938    20989      +51     
+ Misses            5176     5154      -22     
+ Partials          1862     1846      -16     
Flag Coverage Δ
unittests 74.99% <88.00%> (+0.14%) ⬆️

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

Impacted Files Coverage Δ
server/region_syncer/client.go 83.72% <50.00%> (+4.81%) ⬆️
server/cluster/cluster.go 82.95% <85.71%> (+0.55%) ⬆️
server/cluster/coordinator.go 74.36% <100.00%> (-0.32%) ⬇️
server/core/region.go 91.90% <100.00%> (+0.04%) ⬆️
server/core/region_option.go 82.85% <100.00%> (+0.33%) ⬆️
server/grpc_service.go 51.69% <100.00%> (-0.20%) ⬇️
pkg/errs/errs.go 75.00% <0.00%> (-25.00%) ⬇️
pkg/tempurl/tempurl.go 45.00% <0.00%> (-15.00%) ⬇️
pkg/cache/lru.go 79.06% <0.00%> (-9.31%) ⬇️
... and 16 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 9473328...07a24c2. Read the comment docs.

@VelocityLight VelocityLight added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Jun 13, 2022
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 14, 2022
@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 Jun 22, 2022
@nolouch
Copy link
Contributor

nolouch commented Jun 22, 2022

/merge

@ti-chi-bot
Copy link
Member Author

@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 Author

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

Commit hash: 6038a45

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 22, 2022
@ti-chi-bot
Copy link
Member Author

@ti-chi-bot: 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 0204bfa into tikv:release-5.4 Jun 22, 2022
@purelind purelind added this to the v5.4.2 milestone Jun 27, 2022
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. release-note The PR should write the release note. 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-5.4 The PR belongs to release-5.4 cherry pick.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants