Skip to content
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: Move status and variables to P_S #56569

Merged
merged 11 commits into from
Nov 18, 2024

Conversation

dveeden
Copy link
Contributor

@dveeden dveeden commented Oct 11, 2024

What problem does this PR solve?

Issue Number: close #9154

Problem Summary:

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

The `GLOBAL_VARIABLES`, `SESSION_VARIABLES`, `GLOBAL_STATUS` and `SESSION_STATUS` are now only available in the `performance_schema` schema.

Copy link

ti-chi-bot bot commented Oct 11, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 11, 2024
Copy link

tiprow bot commented Oct 11, 2024

Hi @dveeden. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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 kubernetes-sigs/prow repository.

@dveeden dveeden requested review from mjonss and Defined2014 October 11, 2024 07:56
@dveeden
Copy link
Contributor Author

dveeden commented Oct 11, 2024

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Oct 11, 2024
@dveeden dveeden marked this pull request as ready for review October 11, 2024 07:59
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2024
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.8352%. Comparing base (a22b842) to head (704945f).
Report is 2 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #56569        +/-   ##
================================================
+ Coverage   72.8488%   74.8352%   +1.9863%     
================================================
  Files          1672       1717        +45     
  Lines        462666     470729      +8063     
================================================
+ Hits         337047     352271     +15224     
+ Misses       104821      96350      -8471     
- Partials      20798      22108      +1310     
Flag Coverage Δ
integration 49.3371% <ø> (?)
unit 72.3582% <ø> (+0.1365%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.7673% <ø> (ø)
parser ∅ <ø> (∅)
br 60.6756% <ø> (+15.5530%) ⬆️

@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 11, 2024
@dveeden
Copy link
Contributor Author

dveeden commented Oct 11, 2024

/retest

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Oct 14, 2024
Copy link
Contributor

@mjonss mjonss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are upgrades affected by this? Or is it just all in memory so it just depends on the TiDB node you are connecting to?

pkg/infoschema/tables.go Outdated Show resolved Hide resolved
Copy link

ti-chi-bot bot commented Oct 25, 2024

PR needs rebase.

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 kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 25, 2024
@dveeden
Copy link
Contributor Author

dveeden commented Oct 28, 2024

Are upgrades affected by this? Or is it just all in memory so it just depends on the TiDB node you are connecting to?

As listed in #9154 (comment) most of these tables are empty with the exception of session_variables.

The session_variables table is populated by GetDataFromSessionVariables() so it doesn't store this on disk.

@dveeden
Copy link
Contributor Author

dveeden commented Oct 28, 2024

/retest

Copy link
Contributor

@mjonss mjonss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with some suggestions

pkg/infoschema/tables.go Show resolved Hide resolved
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 29, 2024
Copy link

ti-chi-bot bot commented Oct 29, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-14 03:46:34.525202896 +0000 UTC m=+242791.674112725: ☑️ agreed by lance6716.
  • 2024-10-29 10:24:56.682304389 +0000 UTC m=+345409.521459934: ☑️ agreed by mjonss.

@dveeden dveeden requested review from GMHDBJD and removed request for Defined2014 October 29, 2024 12:22
@dveeden dveeden removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 29, 2024
Copy link
Contributor

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

ti-chi-bot bot commented Oct 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: GMHDBJD, lance6716, mjonss

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Oct 29, 2024
@dveeden
Copy link
Contributor Author

dveeden commented Nov 18, 2024

/retest

@ti-chi-bot ti-chi-bot bot merged commit b37a837 into pingcap:master Nov 18, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL 8.0: Remove i_s.*variables, i_s.*status
4 participants