-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
ttl: fix the issue that the task is not cancelled after transfering owners #57788
Conversation
@@ -117,7 +117,7 @@ func (s *tableTimerStoreCore) List(ctx context.Context, cond api.Cond) ([]*api.T | |||
} | |||
defer back() | |||
|
|||
if sessVars := sctx.GetSessionVars(); sessVars.GetEnableIndexMerge() { | |||
if sessVars := sctx.GetSessionVars(); !sessVars.GetEnableIndexMerge() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tiny typo fix @lcwangchao
/check-issue-triage-complete |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57788 +/- ##
================================================
+ Coverage 72.8485% 73.5351% +0.6865%
================================================
Files 1677 1679 +2
Lines 464432 467095 +2663
================================================
+ Hits 338332 343479 +5147
+ Misses 105218 102756 -2462
+ Partials 20882 20860 -22
Flags with carried forward coverage won't be shown. Click here to find out more.
|
398ed8c
to
04da03a
Compare
pkg/ttl/ttlworker/timer_test.go
Outdated
// job not exists but table ttl not enabled | ||
watermark := time.Unix(3600*123, 0) | ||
watermark := time.Unix(3600*123, 0).In(tz) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fix to make this test stable in CI environment (when the SystemLocation
is possibly not Local
). I've faced the same error in #57718, so I think it's not related to other changes in this PR.
0673dd6
to
1d3f31e
Compare
/retest |
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lcwangchao, zimulala 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 |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #57784
Problem Summary:
The TTL task is not cancelled after the owner transfers to other TiDB nodes.
What changed and how does it work?
UPDATE
successfully.Check List
Tests
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.