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: update TTL according to SplitMergeInterval #4616

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Jan 27, 2022

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

What problem does this PR solve?

Close #4614.

What is changed and how it works?

Update TTL when split-merge-interval is changed.

Check List

Tests

  • Unit test

Release note

None

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx rleungx added the component/checker Checker logic. label Jan 27, 2022
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jan 27, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

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

@rleungx rleungx requested review from nolouch and removed request for Yisaer January 27, 2022 03:02
@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

Merging #4616 (0c7a59f) into master (a6f72df) will increase coverage by 0.08%.
The diff coverage is 100.00%.

❗ Current head 0c7a59f differs from pull request most recent head eb30f41. Consider uploading reports for the commit eb30f41 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4616      +/-   ##
==========================================
+ Coverage   74.75%   74.84%   +0.08%     
==========================================
  Files         282      281       -1     
  Lines       27765    27714      -51     
==========================================
- Hits        20757    20743      -14     
+ Misses       5140     5122      -18     
+ Partials     1868     1849      -19     
Flag Coverage Δ
unittests 74.84% <100.00%> (+0.08%) ⬆️

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

Impacted Files Coverage Δ
pkg/cache/ttl.go 97.93% <100.00%> (+0.16%) ⬆️
server/schedule/checker/merge_checker.go 73.55% <100.00%> (+0.22%) ⬆️
server/api/unsafe_operation.go 55.55% <0.00%> (-16.67%) ⬇️
server/schedulers/shuffle_hot_region.go 55.55% <0.00%> (-10.11%) ⬇️
pkg/etcdutil/etcdutil.go 82.35% <0.00%> (-3.53%) ⬇️
server/api/router.go 97.32% <0.00%> (-2.24%) ⬇️
server/schedule/operator_controller.go 82.92% <0.00%> (-2.04%) ⬇️
server/member/member.go 64.70% <0.00%> (-1.61%) ⬇️
server/storage/hot_region_storage.go 78.73% <0.00%> (-1.15%) ⬇️
server/schedule/operator/step.go 73.09% <0.00%> (-1.10%) ⬇️
... and 27 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 a6f72df...eb30f41. 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 ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 27, 2022
Copy link
Contributor

@lhy1024 lhy1024 left a comment

Choose a reason for hiding this comment

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

How about judging based on the configured time rather than using the fixed time?

@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 Feb 7, 2022
@rleungx
Copy link
Member Author

rleungx commented Feb 11, 2022

/hold

@ti-chi-bot ti-chi-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 11, 2022
@rleungx
Copy link
Member Author

rleungx commented Feb 11, 2022

/hold cancel

@ti-chi-bot ti-chi-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 11, 2022
@lhy1024
Copy link
Contributor

lhy1024 commented Feb 11, 2022

How about judging based on the configured time rather than using the fixed time?

After discussion, it may be difficult to do GC.

@nolouch
Copy link
Contributor

nolouch commented Feb 11, 2022

/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: 0c7a59f

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/checker Checker logic. release-note-none 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.

Reset split-merge-interval don't work on empty regions generated before reset
5 participants