-
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
session: bind extensions to bootstrap session #54670
Conversation
Hi @yzhan1. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
Hi @yzhan1. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with 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. |
@lcwangchao @CbcWestwolf @bb7133 PTAL. Thanks! |
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #54670 +/- ##
=================================================
- Coverage 72.7196% 56.8992% -15.8204%
=================================================
Files 1551 1681 +130
Lines 437087 621516 +184429
=================================================
+ Hits 317848 353638 +35790
- Misses 99645 244571 +144926
- Partials 19594 23307 +3713
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Please add a new UT to cover this scenario. You can take tidb/pkg/session/test/session_test.go Line 788 in ca7ba14
|
/retest |
/check-issue-triage-complete |
@CbcWestwolf could you take a look again? Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CbcWestwolf, lcwangchao 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 |
[LGTM Timeline notifier]Timeline:
|
/retest |
/test check-dev |
@yzhan1: The specified target(s) for
Use In response to this:
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. |
What problem does this PR solve?
Issue Number: close #54671
Problem Summary:
When bootstrapping with init SQL file, all extensions are not bind to the session object used for bootstrapping. This means if the init SQL file has any SQL statements which creates users using extension auth plugins, it will fail to execute because the executor can't find the plugin implementation.
What changed and how does it work?
This PR fixes it by properly binding all extensions to the session context used for bootstrapping.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.