-
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
ddl: add ttl related jobs / execution #39298
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
a32b7b4
to
482faad
Compare
@@ -0,0 +1,110 @@ | |||
// Copyright 2022 PingCAP, Inc. |
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.
1、remember to update bazel config when you create a new file.
2、ddl has been put too many files. so can you put them into ddl/ttl
if it is easy to do ?
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.
- Done
- They depend on some internal structs / functions of ddl, for example
findColumnByName
,ddlCtx
... So they cannot be moved toddl/ttl
directly 🤔 .
If it's an issue, I suggest to try to extract some utilities functions first, so that other functions would be easier to be extracted.
f5b8ff3
to
d3db3cf
Compare
26669bc
to
25d2441
Compare
/run-all-tests |
25d2441
to
3824668
Compare
3824668
to
61348ed
Compare
15f6580
to
37d8d29
Compare
8baa376
to
28b41b6
Compare
Signed-off-by: YangKeao <[email protected]>
28b41b6
to
85b0264
Compare
Signed-off-by: Weizhen Wang <[email protected]>
/run-build |
/run-check_dev_2 |
CI passed. PTAL @hawkingrei |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e3fbb89
|
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
What problem does this PR solve?
Define and execute ttl related ddl jobs.
Issue Number: close #39269, close #39270, close #39271
This PR is based on #39341, so please merge #39341 before this one.
Problem Summary:
What is changed and how it works?
Add the execution of TTl related ddl statements, some validations and the ddl worker support.
The DDL worker simply records the ttlInfo and ttlEnable. We'll need to check and modify the running status of ttl job in the future.
Check List
Tests
Release note