-
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
infoschema, executor: Add SQL text column to DATA_LOCK_WAITS table #26632
infoschema, executor: Add SQL text column to DATA_LOCK_WAITS table #26632
Conversation
…view-get-sql-test-2
…eminta/tidb into m/lock-view-get-sql-test-2
…lock-waits-sql-text
…view-get-sql-test-2
[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. |
… m/data-lock-waits-sql-text
…lock-waits-sql-text
executor/infoschema_reader.go
Outdated
for i, lockWait := range r.lockWaits { | ||
digest, err := resourcegrouptag.DecodeResourceGroupTag(lockWait.ResourceGroupTag) | ||
if err != nil { | ||
logutil.BgLogger().Warn("failed to decode resource group tag", zap.Error(err)) |
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.
Seems there's input ctx
, we could use logger
with it. We could add some comments if the error is expected to be ignored.
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 46656d2
|
@MyonKeminta: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
Problem Summary: This PR adds
SQL_DIGEST_TEXT
column toDATA_LOCK_WAITS
table so that the SQL text corresponding to theSQL_DIGEST
column can be displayed.What is changed and how it works?
What's Changed:
SQL_DIGEST_TEXT
column toDATA_LOCK_WAITS
table that shows the SQL text corresponding to theSQL_DIGEST
column.DATA_LOCK_WAITS
totestClusterTableSuite
, which involves some changes to the mockStorageRequires #26357
Check List
Tests
Side effects
Documentation
Release note