From ba7cb32915955813f113a848e51a5fd8ca01e218 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 045a10b9451f3..c335347abfaee 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 2535aee6000196c927e20bc4de1e6fdd96ded55c 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 c335347abfaee..25d1e23efb0dd 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