Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: PD 配置 获取部分 bool 显示为 string
When querying PD’s configuration through HTTP, some true or false parameters are displayed as strings, while others are displayed as booleans.
However, in the toml configuration file, they are set using boolean values.
Is this intentional? Or how can we distinguish in such cases? [Version 5.4]
TiDB’s version iterations have been too fast in recent years, and developers are not being careful.
Take TOML as the standard. For example, when modifying parameters using pd-ctl, do not add quotes:
config set enable-cross-table-merge false
I guess the JSON display style is related to the Go struct field type definition and is not strictly consistent with TOML. As long as it is understandable, it is fine.
Yes, let’s see if we can standardize it, otherwise it will be very troublesome to handle during parameter checks.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.