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
The root cause is because the validation function on TiDBAnalyzeVersion calls vars.GlobalVarsAccessor.GetGlobalSysVar(TiDBAnalyzeVersion), which causes recursion, because the GetGlobalSysVar() func will in turn call the validation function.
There are 3 other occurences of vars.GlobalVarsAccessor.GetGlobalSysVar being used in a validation function, but these don't lead to recursion. It is only this instance.
2. What did you expect to see? (Required)
No crash
3. What did you see instead (Required)
Crash
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered:
morgo
changed the title
Validation Functions can not call vars.GlobalVarsAccessor.GetGlobalSysVar
Validation Functions can not call vars.GlobalVarsAccessor.GetGlobalSysVar safely
Nov 30, 2021
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Start a tidb server with the following config:
Because of #29594 it will cause the server to crash within a few seconds:
The root cause is because the validation function on
TiDBAnalyzeVersion
callsvars.GlobalVarsAccessor.GetGlobalSysVar(TiDBAnalyzeVersion)
, which causes recursion, because theGetGlobalSysVar()
func will in turn call the validation function.There are 3 other occurences of
vars.GlobalVarsAccessor.GetGlobalSysVar
being used in a validation function, but these don't lead to recursion. It is only this instance.2. What did you expect to see? (Required)
No crash
3. What did you see instead (Required)
Crash
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: