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

*: add support for dynamic privileges #22778

Merged
merged 19 commits into from
Mar 31, 2021

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Feb 16, 2021

What problem does this PR solve?

This adds dynamic privileges support (a feature from MySQL 8.0). The initial list of dynamic privileges is a static list, but it is possible to extend in future so that plugins can add their own privileges.

Problem Summary:

What is changed and how it works?

Proposal: #23224

What's Changed:

How it Works:

Related changes

Check List

Tests

  • Unit test

Side effects

  • Performance regression
    • Consumes more CPU
    • Consumes more MEM

Release note

  • Initial support for Dynamic Privileges (a MySQL 8.0 feature) has been added.

@morgo
Copy link
Contributor Author

morgo commented Feb 16, 2021

/run-all-tests

@github-actions github-actions bot added sig/execution SIG execution sig/sql-infra SIG: SQL Infra labels Feb 16, 2021
@morgo
Copy link
Contributor Author

morgo commented Feb 16, 2021

The common-test failures are caused by the error messages changed. Some permissions no longer require SUPER but SUPER or x.

@bb7133
Copy link
Member

bb7133 commented Feb 18, 2021

/bench

@morgo morgo marked this pull request as ready for review February 20, 2021 02:44
@morgo morgo requested review from a team as code owners February 20, 2021 02:44
@morgo morgo requested review from qw4990 and eurekaka and removed request for a team February 20, 2021 02:44
@bb7133
Copy link
Member

bb7133 commented Feb 23, 2021

LGTM

@ti-chi-bot
Copy link
Member

@bb7133: Please use /LGTM instead of LGTM when you want to approve the pull request by comment.
If you use the GitHub review feature, please approve the PR directly, the comment will not take effect in the GitHub review feature.
If you have any qustions please refer to lgtm command help or lgtm plugin design.

If you have approved this PR, please ignore this reply. This reply is being used as a temporary reply during the migration of the new bot and will be removed on April 1.

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.

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 23, 2021
@bb7133
Copy link
Member

bb7133 commented Feb 23, 2021

But we don't merge it into master for now since it is not in current release plan.

@bb7133
Copy link
Member

bb7133 commented Feb 23, 2021

PTAL @tiancaiamao

@Rustin170506
Copy link
Member

But we don't merge it into master for now since it is not in current release plan.

Try this:

/hold

@ti-chi-bot ti-chi-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 23, 2021
@bb7133
Copy link
Member

bb7133 commented Feb 25, 2021

/lgtm

@bb7133
Copy link
Member

bb7133 commented Feb 25, 2021

/hold

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 2018a34

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 29, 2021
@tiancaiamao
Copy link
Contributor

CI fails. mysql-test needs to be updated @morgo

@Rustin170506
Copy link
Member

/run-all-tests

@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Mar 29, 2021
@morgo
Copy link
Contributor Author

morgo commented Mar 29, 2021

/run-all-tests tidb-test=pr/1176

@morgo
Copy link
Contributor Author

morgo commented Mar 30, 2021

@tiancaiamao PTAL again. Note that some new code was introduced in 763325a

@tiancaiamao
Copy link
Contributor

/LGTM

@tiancaiamao tiancaiamao requested a review from bb7133 March 30, 2021 12:08
@bb7133
Copy link
Member

bb7133 commented Mar 31, 2021

/lgtm

@bb7133
Copy link
Member

bb7133 commented Mar 31, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 66f23a1

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 31, 2021
@ti-chi-bot
Copy link
Member

@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.

@lysu
Copy link
Contributor

lysu commented Mar 31, 2021

/merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution sig/sql-infra SIG: SQL Infra size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants