You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately this caching is required to make subsequent calls to SHOW VARIABLES fast, but assuming #24359 merges all calls can be fast, and compatibility can be ensured.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Session 1 should show the new value because the variable is GLOBAL-only scope.
3. What did you see instead (Required)
Session 1 shows the global variable unchanged, but because the setting is global-only scope it is expected to show the new value.
This is caused by the following code which caches the global variables into the session's
systems
cache, which is unsafe:tidb/sessionctx/variable/varsutil.go
Lines 161 to 167 in 86b6429
Unfortunately this caching is required to make subsequent calls to
SHOW VARIABLES
fast, but assuming #24359 merges all calls can be fast, and compatibility can be ensured.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: