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

scheduler: fix scatter range scheduler limit (#3361) #3401

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Jan 28, 2021

cherry-pick #3361 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/3401

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

git push git@github.com:ti-srebot/pd.git pr/3401:release-4.0-680a3a48d3cd

What problem does this PR solve?

Closes #3356

What is changed and how it works?

This PR fixes the limit constriction for scatter range scheduler.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Fix the limit constriction of the scatter range scheduler

@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

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

@HunDunDM
Copy link
Member

@rleungx please fix the conflict.

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx
Copy link
Member

rleungx commented Jan 28, 2021

/run-all-tests

@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #3401 (2417ff1) into release-4.0 (0899703) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #3401      +/-   ##
===============================================
- Coverage        74.74%   74.70%   -0.05%     
===============================================
  Files              209      209              
  Lines            19752    19760       +8     
===============================================
- Hits             14764    14761       -3     
- Misses            3653     3658       +5     
- Partials          1335     1341       +6     
Flag Coverage Δ
unittests 74.70% <100.00%> (-0.05%) ⬇️

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

Impacted Files Coverage Δ
server/schedulers/scatter_range.go 80.79% <100.00%> (+1.07%) ⬆️
pkg/etcdutil/etcdutil.go 72.05% <0.00%> (-10.30%) ⬇️
server/heartbeat_streams.go 65.93% <0.00%> (-6.60%) ⬇️
server/region_syncer/client.go 78.74% <0.00%> (-4.73%) ⬇️
server/tso/tso.go 81.15% <0.00%> (-2.90%) ⬇️
server/member/leader.go 66.05% <0.00%> (-2.30%) ⬇️
server/grpc_service.go 59.87% <0.00%> (-0.41%) ⬇️
server/server.go 74.66% <0.00%> (+1.32%) ⬆️
pkg/mock/mockhbstream/mockhbstream.go 88.88% <0.00%> (+1.85%) ⬆️
pkg/dashboard/adapter/manager.go 81.52% <0.00%> (+4.34%) ⬆️
... 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 0899703...2417ff1. Read the comment docs.

@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: 2417ff1

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 28, 2021
@ti-chi-bot ti-chi-bot merged commit 28269fc into tikv:release-4.0 Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/scheduler Scheduler logic. 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.

5 participants