【 TiDB 使用环境】生产环境
【 TiDB 版本】6.1.7
【复现路径】tidb-operator搭建的tidb-集群,基本都是参考官方文档的manifest
【遇到的问题:问题现象及影响】
show variables like ‘%paging%’;
没有显示任何变量,不知道是什么原因?是要升级到6.5.x吗?
tidb-operator是v1.4.7的,也是按官方步骤来部署的。
show variables like ‘tidb_enable%’; 有啥
查看一下变量
6.1该字段还是隐藏状态,6.2后就可以看到了。
处于隐藏状态的变量可以设置,但是你看不到。
https://github.com/pingcap/tidb/blob/73d82e330b02a39f74073d98daefbadd7deab9b9/sessionctx/variable/sysvar.go#L1500C98-L1500C102
Hidden: true
{Scope: ScopeGlobal | ScopeSession, Name: TiDBEnablePaging, Value: BoolToOnOff(DefTiDBEnablePaging), Type: TypeBool, Hidden: true, SetSession: func(s *SessionVars, val string) error {
s.EnablePaging = TiDBOptOn(val)
return nil
}
这个PR是remove掉Hidden关键字了,后面没这种情况了。
https://github.com/pingcap/tidb/pull/35740
// Deprecated: Hidden previously meant that the variable still responds to SET but doesn't show up in SHOW VARIABLES
// However, this feature is no longer used. All variables are visble.
1 个赞
应该是版本问题
以后奇怪问题都得直接源码了~
1 个赞
此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。