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

statistic: replace old inherit with adopt in hot statistic #4512

Merged
merged 3 commits into from
Jan 10, 2022

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Dec 28, 2021

Signed-off-by: lhy1024 admin@liudos.us

What problem does this PR solve?

To close #4510

What is changed and how it works?

  • remove inherit in hot statistic
  • rename directly to inherit

Check List

Tests

  • Unit test

Release note

None.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 28, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

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

@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 28, 2021
@codecov
Copy link

codecov bot commented Dec 28, 2021

Codecov Report

Merging #4512 (3916382) into master (b140104) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4512      +/-   ##
==========================================
- Coverage   74.92%   74.81%   -0.12%     
==========================================
  Files         265      265              
  Lines       27865    27845      -20     
==========================================
- Hits        20877    20831      -46     
- Misses       5127     5150      +23     
- Partials     1861     1864       +3     
Flag Coverage Δ
unittests 74.81% <100.00%> (-0.12%) ⬇️

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

Impacted Files Coverage Δ
pkg/apiutil/serverapi/middleware.go 69.69% <ø> (-0.90%) ⬇️
server/statistics/kind.go 34.37% <ø> (-1.99%) ⬇️
server/statistics/hot_peer.go 96.61% <100.00%> (ø)
server/statistics/hot_peer_cache.go 96.89% <100.00%> (+0.18%) ⬆️
server/kv/etcd_kv.go 69.56% <0.00%> (-10.15%) ⬇️
server/schedulers/shuffle_hot_region.go 55.55% <0.00%> (-10.11%) ⬇️
server/tso/local_allocator.go 64.86% <0.00%> (-6.76%) ⬇️
server/tso/allocator_manager.go 64.22% <0.00%> (-2.00%) ⬇️
server/schedule/operator/step.go 73.09% <0.00%> (-1.82%) ⬇️
pkg/btree/btree.go 85.78% <0.00%> (-0.97%) ⬇️
... and 9 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 68c4ff3...3916382. Read the comment docs.

@rleungx
Copy link
Member

rleungx commented Dec 29, 2021

We may need some tests for this PR.

@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 29, 2021

We may need some tests for this PR.

yep, I will test it with regression tests

@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 4, 2022

We may need some tests for this PR.

yep, I will test it with regression tests

Its query is higher, and its stddev is less

image

@rleungx rleungx added the component/statistics Statistics for scheduling. label Jan 6, 2022
@ti-chi-bot ti-chi-bot added status/LGT1 Indicates that a PR has LGTM 1. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 6, 2022
@ti-chi-bot
Copy link
Member

@lhy1024: PR needs rebase.

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 kubernetes/test-infra repository.

server/statistics/kind.go Outdated Show resolved Hide resolved
Signed-off-by: lhy1024 <admin@liudos.us>
@lhy1024 lhy1024 removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 10, 2022
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 10, 2022

@nolouch PTAL

@lhy1024 lhy1024 changed the title statistic: remove inherit in hot statistic statistic: replace old inherit with adopt in hot statistic Jan 10, 2022
Copy link
Member

@HunDunDM HunDunDM left a comment

Choose a reason for hiding this comment

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

LGTM, but can we add some tests that will fail before modification?

Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 10, 2022

According to #4510, I add a test and it failed in master
image

@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 Jan 10, 2022
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 10, 2022

/merge

@ti-chi-bot
Copy link
Member

@lhy1024: 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: 3916382

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 10, 2022
@ti-chi-bot ti-chi-bot merged commit 6f8edf2 into tikv:master Jan 10, 2022
lhy1024 added a commit to lhy1024/pd that referenced this pull request Jan 21, 2022
Signed-off-by: lhy1024 <admin@liudos.us>
lhy1024 added a commit to ti-chi-bot/pd that referenced this pull request Jan 21, 2022
Signed-off-by: lhy1024 <admin@liudos.us>
lhy1024 added a commit to ti-chi-bot/pd that referenced this pull request Jan 21, 2022
Signed-off-by: lhy1024 <admin@liudos.us>
ti-chi-bot added a commit that referenced this pull request Jan 26, 2022
… the interval is less than 60 (#4396) (#4433)

* This is an automated cherry-pick of #4396

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

* fix test

Signed-off-by: lhy1024 <admin@liudos.us>

* ref #4390

Signed-off-by: lhy1024 <admin@liudos.us>

* fix ci

Signed-off-by: lhy1024 <admin@liudos.us>

* pick for #4446, #4512

Signed-off-by: lhy1024 <admin@liudos.us>

* fix test

Signed-off-by: lhy1024 <admin@liudos.us>

* update

Signed-off-by: lhy1024 <admin@liudos.us>

Co-authored-by: lhy1024 <admin@liudos.us>
ti-chi-bot added a commit that referenced this pull request Apr 14, 2022
… the interval is less than 60 (#4396) (#4434)

close #4390, ref #4396, ref #4446, ref #4512

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: lhy1024 <admin@liudos.us>

Co-authored-by: lhy1024 <admin@liudos.us>
Co-authored-by: 混沌DM <hundundm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/statistics Statistics for scheduling. release-note-none Denotes a PR that doesn't merit a release note. 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.

statistic: refactor inherit in hot statistic
5 participants