-
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
global system variable can't take effect right away for new connection #14531
Comments
This says it will also take 2-3 seconds for the new session to have access to the changed other global variables, not just |
From above: the new session after the global variable set will still use old TiDB |
Issue close suggested. |
we should emphasize this 'feature' at the document? |
can we improve it by evicting the cache right away so at least for the same tidb instance there's no this issue |
Make sense~ I will add it in. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
set global variable -> return success -> check the value in new connect but get the old value
I have also tried another variable
tidb_disable_txn_auto_retry
It also can't take effect right away.mainly test code :
when offset = 1
run the func to set as 2, it will failed:
from tidb log we can see:
What did you expect to see?
global system variable can't take effect right away for the new connection
What did you see instead?
It needs a few seconds to take effect
What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?v3.0.9
The text was updated successfully, but these errors were encountered: