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: remove the useless code in hot-region-scheduler #3833

Merged
merged 4 commits into from
Jul 5, 2021

Conversation

HunDunDM
Copy link
Member

@HunDunDM HunDunDM commented Jul 5, 2021

What problem does this PR solve?

What is changed and how it works?

  • move part of the code of the hot-region-scheduler to the test package
  • remove the useless code in hot-region-scheduler
  • fix nil pointer warning

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

Release note

None

@HunDunDM HunDunDM added component/scheduler Scheduler logic. require-LGT1 Indicates that the PR requires an LGTM. labels Jul 5, 2021
@HunDunDM HunDunDM requested a review from lhy1024 July 5, 2021 12:14
@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Jul 5, 2021
@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #3833 (bb9c0f7) into master (c5aff6e) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3833      +/-   ##
==========================================
- Coverage   75.06%   75.04%   -0.03%     
==========================================
  Files         246      246              
  Lines       24757    24740      -17     
==========================================
- Hits        18583    18565      -18     
- Misses       4541     4546       +5     
+ Partials     1633     1629       -4     
Flag Coverage Δ
unittests 75.04% <100.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
server/schedulers/hot_region.go 84.88% <100.00%> (-0.09%) ⬇️
server/schedulers/shuffle_hot_region.go 54.73% <0.00%> (-9.48%) ⬇️
server/schedulers/random_merge.go 60.00% <0.00%> (-3.34%) ⬇️
client/base_client.go 82.29% <0.00%> (-2.09%) ⬇️
server/tso/allocator_manager.go 77.79% <0.00%> (-1.51%) ⬇️
pkg/btree/btree.go 85.30% <0.00%> (-0.97%) ⬇️
client/client.go 71.82% <0.00%> (-0.14%) ⬇️
server/grpc_service.go 48.34% <0.00%> (+0.22%) ⬆️
server/server.go 72.07% <0.00%> (+0.45%) ⬆️
server/member/member.go 68.81% <0.00%> (+0.53%) ⬆️
... 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 c5aff6e...bb9c0f7. Read the comment docs.

Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nolouch

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 status/LGT1 Indicates that a PR has LGTM 1. label Jul 5, 2021
@nolouch
Copy link
Contributor

nolouch commented Jul 5, 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: f8b28b4

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 5, 2021
@ti-chi-bot ti-chi-bot merged commit f6fc8fb into tikv:master Jul 5, 2021
@HunDunDM HunDunDM deleted the hot-region-useless-code branch July 5, 2021 13:26
bufferflies pushed a commit to bufferflies/pd that referenced this pull request Jul 9, 2021
* scheduler: move part of the code of the hot-region-scheduler to the test package

Signed-off-by: HunDunDM <[email protected]>

* scheduler: remove the useless code in hot-region-scheduler

Signed-off-by: HunDunDM <[email protected]>

* scheduler: fix nil pointer warning

Signed-off-by: HunDunDM <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
HunDunDM added a commit to HunDunDM/pd that referenced this pull request Jul 28, 2021
* scheduler: move part of the code of the hot-region-scheduler to the test package

Signed-off-by: HunDunDM <[email protected]>

* scheduler: remove the useless code in hot-region-scheduler

Signed-off-by: HunDunDM <[email protected]>

* scheduler: fix nil pointer warning

Signed-off-by: HunDunDM <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
HunDunDM added a commit to ti-chi-bot/pd that referenced this pull request Sep 1, 2021
ti-chi-bot added a commit that referenced this pull request Sep 1, 2021
* scheduler: simplify pending influence (#3658)

Signed-off-by: HunDunDM <[email protected]>

* schedulers: unify the use and GC of hot-region's pendings and regionPendings (#3921)

Signed-off-by: HunDunDM <[email protected]>

* scheduler: remove the useless code in hot-region-scheduler (#3833)

Signed-off-by: HunDunDM <[email protected]>

* scheduler: fix inaccurate statistics and config (#3949)

Signed-off-by: HunDunDM <[email protected]>

* tiny fix

Signed-off-by: HunDunDM <[email protected]>

* tiny fix

Signed-off-by: HunDunDM <[email protected]>

Co-authored-by: HunDunDM <[email protected]>
HunDunDM added a commit to ti-chi-bot/pd that referenced this pull request Sep 8, 2021
ti-chi-bot added a commit that referenced this pull request Sep 9, 2021
* scheduler: simplify pending influence (#3658)

Signed-off-by: HunDunDM <[email protected]>

* schedulers: unify the use and GC of hot-region's pendings and regionPendings (#3921)

Signed-off-by: HunDunDM <[email protected]>

* scheduler: remove the useless code in hot-region-scheduler (#3833)

Signed-off-by: HunDunDM <[email protected]>

* scheduler: fix inaccurate statistics and config (#3949)

Signed-off-by: HunDunDM <[email protected]>

Co-authored-by: HunDunDM <[email protected]>
HunDunDM added a commit to ti-chi-bot/pd that referenced this pull request Sep 15, 2021
ti-chi-bot added a commit that referenced this pull request Sep 15, 2021
* scheduler: remove the useless code in hot-region-scheduler (#3833)

Signed-off-by: HunDunDM <[email protected]>

* scheduler: fix inaccurate statistics and config (#3949)

Signed-off-by: HunDunDM <[email protected]>

* tiny fix

Signed-off-by: HunDunDM <[email protected]>

Co-authored-by: HunDunDM <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/scheduler Scheduler logic. release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants