From b0f8670317314695339e42aa0ba897a47f024310 Mon Sep 17 00:00:00 2001 From: en-jin19 Date: Mon, 23 Aug 2021 12:19:01 +0200 Subject: [PATCH 1/2] release 5.1.0: add compatibility change for `tidb_enable_noop_functions` --- releases/release-5.1.0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/releases/release-5.1.0.md b/releases/release-5.1.0.md index 2540a961d1cca..2d21dcfda1272 100644 --- a/releases/release-5.1.0.md +++ b/releases/release-5.1.0.md @@ -63,6 +63,7 @@ In v5.1, the key new features or improvements are as follows: - Avoid executing statements like `alter table ... modify column` or `alter table ... change column` during the TiDB rolling upgrade. - Since v5.1, setting the replica of system tables, when building TiFlash replicas for each table, is no longer supported. Before upgrading the cluster, you need to clear the relevant system table replicas; otherwise, the upgrade will fail. - Deprecate the `--sort-dir` parameter in the `cdc cli changefeed` command of TiCDC. Instead, you can set `--sort-dir` in the `cdc server` command. [#1795](https://github.com/pingcap/ticdc/pull/1795) +- After upgrading to TiDB 5.1, if TiDB returns the "function READ ONLY has only noop implementation" error, you can let TiDB silently ignore this error by setting the value of [`tidb_enable_noop_functions`](/system-variables.md#tidb_enable_noop_functions-new-in-v40) to `ON`. This is because the `read_only` variable in MySQL is not yet in effect in TiDB (which is a 'noop' behavior in TiDB). Therefore, even if this variable is set in TiDB, you can still write data into TiDB clusters. ## New features From d3238772335c04014ba8460fd5bda451d5e6d502 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 31 Aug 2021 14:00:07 +0800 Subject: [PATCH 2/2] minor fix --- releases/release-5.1.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-5.1.0.md b/releases/release-5.1.0.md index 2d21dcfda1272..e799e19636044 100644 --- a/releases/release-5.1.0.md +++ b/releases/release-5.1.0.md @@ -63,7 +63,7 @@ In v5.1, the key new features or improvements are as follows: - Avoid executing statements like `alter table ... modify column` or `alter table ... change column` during the TiDB rolling upgrade. - Since v5.1, setting the replica of system tables, when building TiFlash replicas for each table, is no longer supported. Before upgrading the cluster, you need to clear the relevant system table replicas; otherwise, the upgrade will fail. - Deprecate the `--sort-dir` parameter in the `cdc cli changefeed` command of TiCDC. Instead, you can set `--sort-dir` in the `cdc server` command. [#1795](https://github.com/pingcap/ticdc/pull/1795) -- After upgrading to TiDB 5.1, if TiDB returns the "function READ ONLY has only noop implementation" error, you can let TiDB silently ignore this error by setting the value of [`tidb_enable_noop_functions`](/system-variables.md#tidb_enable_noop_functions-new-in-v40) to `ON`. This is because the `read_only` variable in MySQL is not yet in effect in TiDB (which is a 'noop' behavior in TiDB). Therefore, even if this variable is set in TiDB, you can still write data into TiDB clusters. +- After upgrading to TiDB 5.1, if TiDB returns the "function READ ONLY has only noop implementation" error, you can let TiDB ignore this error by setting the value of [`tidb_enable_noop_functions`](/system-variables.md#tidb_enable_noop_functions-new-in-v40) to `ON`. This is because the `read_only` variable in MySQL does not yet take effect in TiDB (which is a 'noop' behavior in TiDB). Therefore, even if this variable is set in TiDB, you can still write data into the TiDB cluster. ## New features