-
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
executor, infoschema: Add cluster_statements_summary_evicted table to TiDB #25418
Conversation
Enhance LRU cache, enable users access evicted key-value pair on Put() Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Release Note: enhanced LRU Cache some type fixes to cheat CI. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
typo fixes. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
enhance test on lru's Put() method. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Add a function property in kvcache; Add a method to kvcache; Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Used Gofmt Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
An initial commit, still cannot work properly. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Catch up with PingCAP Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
now we can see evicted count debug logging expressions not deleted... Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
STATEMENTS_SUMMARY_EVICTED now able to use Test will be added in tomorrow. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Purge logging code used for debugging. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
add test to evicted count, fix bugs in ssMap.other. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Add test to stmtSummaryByDigestMap.ToEvictedCountDatum and stmtSummaryByDigestEvictedElement.ToEvictedCountDatum. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
make disable fail-point Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
� Conflicts: � executor/infoschema_reader.go � infoschema/tables.go
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
focus on evicted count and purged unrelated contents. Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
improve AddEvicted() from O(mn) to O(n) typo fixs Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
/run-all-tests |
/cc @crazycs520 |
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
[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. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: cff70d7
|
cherry pick to release-5.1 in PR #25587 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #25588 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #25590 |
What problem does this PR solve?
Problem Summary:
I have added
statements_summary_evicted
table to TiDB in #24513, a month ago. However, I didn't add this feature for cluster information.This PR added the feature of adding cluster information of evicted count.
What is changed and how it works?
What's Changed:
Inforschema and executor.
How it Works:
Added a new table:
information_schema
.cluster_statements_summary_evicted
to TiDB.Related changes
Check List
Tests
Side effects
Release note