-
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
*: Change stmt summary and capture plan baselines to GLOBAL only #30756
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_dev_2 |
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.
The capture plan baselines
part LGTM.
Another question is if we execute the |
Sorry, just to clarify: did you mean that (a) we should allow For (b) I have a script that auto-generates the correct docs which I then use to create PRs. See pingcap/docs#6838 for an example where I detected changes and updated the docs (I typically run this script every 2 weeks, so it will be caught before GA). |
I mean plan b, thanks for the answer. In fact, what I mean is that when we do not explicitly specify the scope of the query. For example, the original |
Unfortunately this is not the case. I am hessitant to allow (In a different context in #30558 I proposed we allow both for backward compatibility. But this is slightly different because it very strictly ensures the previous behavior and it does not propagate to peers).
Yes, the docs team will also catch it from the |
@qw4990 PTAL. |
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/c25fb114b1e9f72a910f9b1f2f66b4fcbc87c928 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: d8f420f
|
@morgo: 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?
Issue Number: part of #30557
Problem Summary:
In #30557 it is proposed that we implement
INSTANCE
scope for system variables using a simplified proposal (instance and global are mutually exclusive). This addresses all the pre-requisite behavior changes, which are related to stmt summary and capture plan baseslines (the features are related).Merging this PR is predicated on the proposal for simplified
INSTANCE
scope being approved. If we don't approve the proposal, this PR does not make sense.Yes, this is a breaking change! It has been approved by @easonn7
What is changed and how it works?
The change is unfortunately quite large, this is because:
Check List
Tests
I manually tested that the starting of sysvar cache loop correctly sets the global variablse for stmt summary. If you
set global tidb_enable_stmt_summary = 0
and restart the tidb server, it will be off.Side effects
Documentation
Release note