-
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: fix global variable collation_server does not take effect in new session #23932
Conversation
/run-all-tests |
/cc @pingcap/sql-infra-reviewers |
/run-all-tests |
I am not sure if this is the correct fix. I mean that global variables are promised to be refreshed every 3 mins. They will not take effect immediately. |
I have no knowledge about |
Here, I have one issue, #22808. Andy fault, there is a typo, it is 3s, or 2s, not mins. |
/LGTM
We have several examples where there can be a delay (another one is I think the intention is that Update: My comment here was incorrect. It did nto use etcd to update at the time this was written, but it does now. |
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
[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 writing |
Agreed.
Well, I don't think it is a good idea to merge a PR that is not completely working, though... Anyway, let us merge it as it is proposed. But it should be fine to revert the change back when immediate global cache is implemented, or whatever. |
If we do a more complete fix, I think it will be a lot of work, and not suitable to cherry pick to 5.0.
Agreed. Having the unit test here also helps for this future work. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 19ceee8
|
/run-unit-test |
/merge |
/run-cherry-pick |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0 in PR #24156 |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
after setting the global
collation_server
, the new session'scollation_server
variable should use it.global variable
collation_server
does not take effect because theloadCommonGlobalVariablesIfNeeded
function overwrite the variables, and we had set thecollation_server
when setting thecharacter_set_server
, see #21034Check List
Tests
Release note