-
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: add info schema cache and ttl table status table cache for ttl scheduler #39467
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. |
/run-check-issue-triage-complete |
798836f
to
41852c7
Compare
/run-build |
/run-unit-test |
41852c7
to
6a41335
Compare
/run-build |
/run-check_dev_2 |
6a41335
to
e8a389e
Compare
e8a389e
to
42bb993
Compare
42bb993
to
53d8b33
Compare
/run-check_dev_2 |
4d5e89c
to
7c3c7d6
Compare
9044725
to
04cd9b8
Compare
04cd9b8
to
bcec10c
Compare
Signed-off-by: YangKeao <[email protected]>
bcec10c
to
1d4c2b1
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 1d4c2b1
|
In response to a cherrypick label: new pull request created: #39628. |
TiDB MergeCI notify🔴 Bad News! [1] CI still failing after this pr merged.
|
What problem does this PR solve?
Issue Number: close #39466
Problem Summary:
To implement a ttl job scheduler, we'll need a local map for info schema and ttl table status, to map from a physical table id to related schema information and the information stored in the ttl table status
What is changed and how it works?
It does the following changes:
ttl/session
, and add an interface of session pool into it (though there are some existing session pool, with the same definition here). I don't know whether it appropriate to add yet another session pool interface (but others are in extensions, br... pkg).InfoSchemaCache
and theTTLTableStatusCache
. They are the local mirror of the info schema andmysql.tidb_ttl_table_status
system table.This PR relies on #39315. Please merge it before this one.
Check List
Tests