-
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
inforschema, executor, util/kvcache, util/statement_summary : Add STATEMENTS_SUMMARY_EVICTED into information_schema #24513
Conversation
Enhance LRU cache, enable users access evicted key-value pair on Put() Signed-off-by: ClSlaid <[email protected]>
Release Note: enhanced LRU Cache some type fixes to cheat CI. Signed-off-by: ClSlaid <[email protected]>
typo fixes. Signed-off-by: ClSlaid <[email protected]>
enhance test on lru's Put() method. Signed-off-by: ClSlaid <[email protected]>
Add a function property in kvcache; Add a method to kvcache; Signed-off-by: ClSlaid <[email protected]>
Used Gofmt Signed-off-by: ClSlaid <[email protected]>
An initial commit, still cannot work properly. Signed-off-by: ClSlaid <[email protected]>
Catch up with PingCAP Signed-off-by: ClSlaid <[email protected]>
now we can see evicted count debug logging expressions not deleted... Signed-off-by: ClSlaid <[email protected]>
STATEMENTS_SUMMARY_EVICTED now able to use Test will be added in tomorrow. Signed-off-by: ClSlaid <[email protected]>
/cc @crazycs520 |
Purge logging code used for debugging. Signed-off-by: ClSlaid <[email protected]>
add test to evicted count, fix bugs in ssMap.other. Signed-off-by: ClSlaid <[email protected]>
executor/infoschema_reader.go
Outdated
@@ -2011,6 +2013,14 @@ func (e *memtableRetriever) setDataForClientErrorsSummary(ctx sessionctx.Context | |||
return nil | |||
} | |||
|
|||
func (e *memtableRetriever) setDataForStmtSummaryEvicted(ctx sessionctx.Context, tableName string) error { |
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.
Look like this function is useless? just use e.rows = stmtsummary.StmtSummaryByDigestMap.ToEvictedCountDatum()
in line#153?
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.
Good idea, I wasn't aware of it.
/run-check_dev_2 |
/merge |
1 similar comment
/merge |
/run-mybatis-test |
Should we cherry pick this into v4.0.x? |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0 in PR #25295 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #25296 |
cherry pick to release-5.1 failed |
What problem does this PR solve?
Issue Number: close #23920
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
ssMap
'sother
list.Related changes
Check List
Tests
Side effects
Release note