Recommendations for TiDB Upgrade Prerequisite Checks

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb 升级条件检查建议

| username: h5n1

In this post, the upgrade failed tidb 升级到6.5.0 tidb无法启动,'mysql.tidb_ttl_table_status' doesn't exist" - #6,来自 tidb菜鸟一只 - TiDB 的问答社区, and the analysis suggests it might be a DDL issue. Here are a few optimization suggestions:

  1. Before performing the actual patch upgrade, the upgrade action itself or the check tool should be able to detect the prerequisites that must be completed for the upgrade. If the prerequisites are not met, the upgrade action should not be executed. (Not sure if the new version of the check tool has covered this)

  2. Whether the DDL operation for creating a table during the upgrade is blocked by an existing DDL or if active DDLs are not allowed during the upgrade, or any other problematic situations, the upgrade should not succeed and restart the components.

  3. In scenarios where TiDB cannot start, there should be an emergency function to complete some SQL operations. For example, in the scenario mentioned in the post, manually creating a table might solve the issue. If certain variables are changed causing all TiDB instances to fail to start, and the variables are persisted to TiKV, they cannot be modified.

| username: 我是咖啡哥 | Original post link

The suggestion from the expert is great :100:

| username: Billmay表妹 | Original post link

Feedback provided~

| username: Kongdom | Original post link

:+1: :+1: :+1:

| username: xingzhenxiang | Original post link

Bro, I’m still on v3.1.0.

| username: Billmay表妹 | Original post link

Upgrade, young man~

| username: Billmay表妹 | Original post link

Progress can be seen at Update upgrade-tidb-using-tiup.md by qqqdan · Pull Request #12679 · pingcap/docs-cn · GitHub

| username: h5n1 | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.