Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 6.0以下升级到6.0以上版本问题
[TiDB Usage Environment] Production Environment
[TiDB Version] v6.5.5
[Reproduction Path] Upgrade
[Encountered Problem: Phenomenon and Impact]
The old cluster was upgraded from 5.1.0 to 6.5.5, and the new cluster was newly deployed with v6.5.5.
During backup and restore, an error new_collations_enabled_on_first_bootstrap
mismatch occurred. This error is understood as the default value being changed in 6.0, with the new cluster’s default value being true.
However, checking the system parameters of the old cluster, it is also true.
This parameter has not been changed, and normally the old cluster should be false. Moreover, this parameter only takes effect during initialization.
So the question is, is the old cluster actually true or false now?
When upgrading a TiDB cluster from a version prior to 4.0 to version 4.0 or higher, since the cluster has already been initialized, this parameter will be treated as false regardless of its configuration.
SELECT * FROM mysql.tidb WHERE VARIABLE_NAME = 'new_collation_enabled';
Check it out or verify it directly.
Yes, the document is written like this.
But I upgraded from 5.1 to 6.5.
But I am using version v6.5.5.
What I understand now is that the parameter was forcibly changed to true, but it did not take effect.
Do you mean that during the upgrade, this parameter automatically changed from false to true? Originally, in version 5.5, the default value of this parameter was false?
I saw this on the official website. Now that the configuration is the same, can adding a parameter restore it?
Yes, although it was changed, it didn’t take effect. This only takes effect during initialization.
Yes, it automatically changed to true. According to the documentation, it defaults to true in version 6.5, but I feel that even if it defaults to true, it shouldn’t be changed to true.
Parameters that cannot be changed are redundant and should not be queryable by design.
Makes sense, I’ll go make a suggestion.
Sure, this way it won’t be misleading, haha.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.