From eeaa3b7c119a64c5458892c758c26ab50b19e1fb Mon Sep 17 00:00:00 2001 From: Ran Date: Mon, 14 Aug 2023 13:12:29 +0800 Subject: [PATCH 1/2] This is an automated cherry-pick of #14457 Signed-off-by: ti-chi-bot --- tidb-configuration-file.md | 4 ++++ upgrade-tidb-using-tiup.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 18e640d745985..a5d23952fe501 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -122,6 +122,10 @@ The TiDB configuration file supports more options than command-line parameters. + Default value: "" + By default, the format of the TiDB version string is `5.7.${mysql_latest_minor_version}-TiDB-${tidb_version}`. +> **Note:** +> +> TiDB nodes use the value of `server-version` to verify the current TiDB version. Therefore, to avoid unexpected behaviors, before upgrading the TiDB cluster, you need to set the value of `server-version` to empty or the real version of the current TiDB cluster. + ### `repair-mode` - Determines whether to enable the untrusted repair mode. When the `repair-mode` is set to `true`, bad tables in the `repair-table-list` cannot be loaded. diff --git a/upgrade-tidb-using-tiup.md b/upgrade-tidb-using-tiup.md index 1360730514a1d..cf872e589f79e 100644 --- a/upgrade-tidb-using-tiup.md +++ b/upgrade-tidb-using-tiup.md @@ -22,7 +22,12 @@ This document is targeted for the following upgrade paths: > **Note:** > +<<<<<<< HEAD > If your cluster to be upgraded is v3.1 or an earlier version (v3.0 or v2.1), the direct upgrade to v7.1.0 or a later v7.1.x version is not supported. You need to upgrade your cluster first to v4.0 and then to the target TiDB version. +======= +> - If your cluster to be upgraded is v3.1 or an earlier version (v3.0 or v2.1), the direct upgrade to v7.2.0 is not supported. You need to upgrade your cluster first to v4.0 and then to v7.2.0. +> - TiDB nodes use the value of the [`server-version`](/tidb-configuration-file.md#server-version) configuration item to verify the current TiDB version. Therefore, to avoid unexpected behaviors, before upgrading the TiDB cluster, you need to set the value of `server-version` to empty or the real version of the current TiDB cluster. +>>>>>>> a1528c0f02 (Remove server version upgrade (#14457)) ## Upgrade caveat From 1cbc1a650f09d765d126245ac7ca99c8c60809c2 Mon Sep 17 00:00:00 2001 From: Ran Date: Mon, 14 Aug 2023 14:54:11 +0800 Subject: [PATCH 2/2] Update upgrade-tidb-using-tiup.md --- upgrade-tidb-using-tiup.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/upgrade-tidb-using-tiup.md b/upgrade-tidb-using-tiup.md index cf872e589f79e..7afb847770022 100644 --- a/upgrade-tidb-using-tiup.md +++ b/upgrade-tidb-using-tiup.md @@ -22,12 +22,8 @@ This document is targeted for the following upgrade paths: > **Note:** > -<<<<<<< HEAD -> If your cluster to be upgraded is v3.1 or an earlier version (v3.0 or v2.1), the direct upgrade to v7.1.0 or a later v7.1.x version is not supported. You need to upgrade your cluster first to v4.0 and then to the target TiDB version. -======= -> - If your cluster to be upgraded is v3.1 or an earlier version (v3.0 or v2.1), the direct upgrade to v7.2.0 is not supported. You need to upgrade your cluster first to v4.0 and then to v7.2.0. +> - If your cluster to be upgraded is v3.1 or an earlier version (v3.0 or v2.1), the direct upgrade to v7.1.0 or a later v7.1.x version is not supported. You need to upgrade your cluster first to v4.0 and then to the target TiDB version. > - TiDB nodes use the value of the [`server-version`](/tidb-configuration-file.md#server-version) configuration item to verify the current TiDB version. Therefore, to avoid unexpected behaviors, before upgrading the TiDB cluster, you need to set the value of `server-version` to empty or the real version of the current TiDB cluster. ->>>>>>> a1528c0f02 (Remove server version upgrade (#14457)) ## Upgrade caveat