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

resource control: fix unsafe usage of timer.Reset #8877

Merged
merged 8 commits into from
Dec 11, 2024

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Dec 6, 2024

What problem does this PR solve?

Issue Number: Close #8876

What is changed and how does it work?

Check List

Tests

  • Unit test

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/needs-triage-completed dco-signoff: yes Indicates the PR's author has signed the dco. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 6, 2024
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 10.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 76.15%. Comparing base (da0000a) to head (384f53d).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8877      +/-   ##
==========================================
+ Coverage   75.86%   76.15%   +0.28%     
==========================================
  Files         460      459       -1     
  Lines       70637    70258     -379     
==========================================
- Hits        53591    53505      -86     
+ Misses      13673    13392     -281     
+ Partials     3373     3361      -12     
Flag Coverage Δ
unittests 76.15% <10.00%> (+0.28%) ⬆️

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

@lhy1024 lhy1024 changed the base branch from master to release-8.1 December 9, 2024 07:37
@ti-chi-bot ti-chi-bot bot added do-not-merge/cherry-pick-not-approved size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 9, 2024
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 9, 2024
Signed-off-by: lhy1024 <admin@liudos.us>
client/utils/utils.go Outdated Show resolved Hide resolved
Signed-off-by: lhy1024 <admin@liudos.us>
client/timerutils/utils.go Outdated Show resolved Hide resolved
client/timerutils/utils.go Outdated Show resolved Hide resolved
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Dec 9, 2024
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 11, 2024
@lhy1024 lhy1024 requested a review from JmPotato December 11, 2024 06:50
Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 11, 2024
@lhy1024 lhy1024 added the lgtm label Dec 11, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 11, 2024

@lhy1024: You cannot manually add or delete the reviewing state labels, only I and the tursted members have permission to do so.

In response to adding label named lgtm.

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 bot removed the lgtm label Dec 11, 2024
@rleungx rleungx added the lgtm label Dec 11, 2024
@ti-chi-bot ti-chi-bot bot removed the lgtm label Dec 11, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 11, 2024

@rleungx: You cannot manually add or delete the reviewing state labels, only I and the tursted members have permission to do so.

In response to adding label named lgtm.

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.

@rleungx
Copy link
Member

rleungx commented Dec 11, 2024

/lgtm

@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 11, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato, rleungx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 11, 2024
Copy link
Contributor

ti-chi-bot bot commented Dec 11, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-09 08:47:33.913744459 +0000 UTC m=+255444.002547002: ☑️ agreed by rleungx.
  • 2024-12-11 06:27:10.948361077 +0000 UTC m=+419821.037163619: ☑️ agreed by JmPotato.
  • 2024-12-11 06:28:10.705366166 +0000 UTC m=+419880.794168709: ✖️🔁 reset by JmPotato.
  • 2024-12-11 08:41:43.908436804 +0000 UTC m=+427893.997239344: ☑️ agreed by JmPotato.
  • 2024-12-11 08:52:43.993003832 +0000 UTC m=+428554.081806375: ☑️ agreed by rleungx.

@ti-chi-bot ti-chi-bot bot merged commit 86d4ad0 into tikv:release-8.1 Dec 11, 2024
21 checks passed
@lhy1024 lhy1024 deleted the fix-timer branch December 11, 2024 09:02
@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 11, 2024

/cherry-pick-release-7.5

@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 11, 2024

/cherry-pick-release-7.1

@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 11, 2024

/cherry-pick release-7.5

@lhy1024
Copy link
Contributor Author

lhy1024 commented Dec 11, 2024

/cherry-pick release-7.1

@ti-chi-bot
Copy link
Member

@lhy1024: new pull request created to branch release-7.5: #8900.

In response to this:

/cherry-pick release-7.5

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 pushed a commit to ti-chi-bot/pd that referenced this pull request Dec 11, 2024
close tikv#8876

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

@lhy1024: new pull request created to branch release-7.1: #8901.

In response to this:

/cherry-pick release-7.1

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 bot pushed a commit that referenced this pull request Dec 12, 2024
close #8876

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

Co-authored-by: lhy1024 <admin@liudos.us>
ti-chi-bot bot pushed a commit that referenced this pull request Dec 20, 2024
close #8876

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

Co-authored-by: lhy1024 <admin@liudos.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved cherry-pick-approved Cherry pick PR approved by release team. dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

resource controller: timer.Reset is unsafe before go 1.23
4 participants