From e9b9f5507d0cfcdfe6e07a19cb10e068a7dc87f6 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 18:29:23 +0800 Subject: [PATCH 01/16] releases: add 4.0.0 GA release notes --- TOC.md | 1 + releases/release-4.0.0-ga.md | 116 +++++++++++++++++++++++++++++++++++ releases/release-notes.md | 1 + 3 files changed, 118 insertions(+) create mode 100644 releases/release-4.0.0-ga.md diff --git a/TOC.md b/TOC.md index 65acdb4c66747..b46f3b76b3f80 100644 --- a/TOC.md +++ b/TOC.md @@ -420,6 +420,7 @@ - [Roadmap](/roadmap.md) + [Releases](/releases/release-notes.md) + v4.0 + - [4.0.0 GA](/releases/release-4.0.0-ga.md) - [4.0.0-rc.2](/releases/release-4.0.0-rc.2.md) - [4.0.0-rc.1](/releases/release-4.0.0-rc.1.md) - [4.0.0-rc](/releases/release-4.0.0-rc.md) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md new file mode 100644 index 0000000000000..5232b517c4792 --- /dev/null +++ b/releases/release-4.0.0-ga.md @@ -0,0 +1,116 @@ +--- +title: TiDB 4.0.0 GA Release Notes +category: Releases +--- + +# TiDB 4.0.0 GA Release Notes + +Release date: May 28, 2020 + +TiDB version: 4.0.0 GA + +## Compatibility changes + +* TiDB + - Optimize the error message of the large-sized transactions for easier troubleshooting [#17219](https://github.com/pingcap/tidb/pull/17219) + +* TiCDC + - Optimize the structure of the `Changefeed` configuration file to improve usability [#588](https://github.com/pingcap/ticdc/pull/588) + - Add the `ignore-txn-start-ts` configuration item, and change the condition from `commit_ts` to `start_ts` during transactions filtering [#589](https://github.com/pingcap/ticdc/pull/589) + +## Important bug fixes + +* TiKV + - Fix the `DefaultNotFound` error that occurs when backing up using Backup & Restore (BR) [#7937](https://github.com/tikv/tikv/pull/7937) + - Fix system panics caused by the out-of-order `ReadIndex` packages [#7930](https://github.com/tikv/tikv/pull/7930) + - Fix system panics caused by incorrectly removing snapshot files after TiKV is restarted [#7927](https://github.com/tikv/tikv/pull/7927) + +* TiFlash + - Fix the possible data loss issue that occurs when the system panics because of incorrect processing logic of `Raft Admin Command` + New features + +## New features + +* TiDB + - Add the `committer-concurrency` configuration item to control the number of `goroutines` in the retry-commit phase [#16849](https://github.com/pingcap/tidb/pull/16849) + - Support the `show table partition regions` syntax [#17294](https://github.com/pingcap/tidb/pull/17294) + - Add the `tmp-storage-quota` configuration item to limit the temporary disk space used by the TiDB server [#15700](https://github.com/pingcap/tidb/pull/15700) + - Support checking whether the partition table uses a unique prefix index when creating and changing tables [#17213](https://github.com/pingcap/tidb/pull/17213) + - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) + - Support checking the value of `collations` when using the `Distinct` function [#17240](https://github.com/pingcap/tidb/pull/17240) + - Support the `is null` filter condition during the Hash partition pruning [#17310](https://github.com/pingcap/tidb/pull/17310) + - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partition tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) + - Support range partition pruning for the `in` expressions [#17320](https://github.com/pingcap/tidb/pull/17320) + +* TiFlash + - Support filtering out the data corresponding to the qualified `TSO` through the `min commit ts` value of the `Lock CF` when the Learner reads the data + - Add the feature that the system explicitly reports an error to avoid incorrect calculation result when the value of `TIMESTAMP` type is less than `1970-01-01 00:00:00` + - Support using flags in regular expressions when searching logs + +* TiKV + - Support collation rules of `ascii_bin` and `latin1_bin` encoding [#7919](https://github.com/tikv/tikv/pull/7919) + +* PD + - Support specifying the reverse proxy resource prefix for built-in TiDB Dashboard [#2457](https://github.com/pingcap/pd/pull/2457) + - Support returning the `pending peer` and `down peer` information in interfaces of the PD client Region [#2443](https://github.com/pingcap/pd/pull/2443) + - Add monitoring items such as `Direction of hotspot move leader`, `Direction of hotspot move peer`, `Hot cache read entry number` [#2448](https://github.com/pingcap/pd/pull/2448) + +* Tools + + BR + - Support the backup and restore of `Sequence` and `View` [#242](https://github.com/pingcap/br/pull/242) + + TiCDC + + - Support checking the validity of `Sink URI` when creating `Changefeed` [#561](https://github.com/pingcap/ticdc/pull/561) + - Support checking whether the PD and TiKV versions meet the system requirements during system startup [#570](https://github.com/pingcap/ticdc/pull/570) + - Support scheduling multiple tables in the same scheduling task generation cycle [#572](https://github.com/pingcap/ticdc/pull/572) + - Add information about node roles in HTTP API [#591](https://github.com/pingcap/ticdc/pull/591) + +## Bug fixes + +* TiDB + + - Fix the issue of unexpected timeouts when sending and receiving messages by disabling TiDB to send batch commands to TiFlash [#17307](https://github.com/pingcap/tidb/pull/17307) + - Fix the issue of incorrectly distinguishing signed and unsigned integers during partition pruning, which improves performance [#17230](https://github.com/pingcap/tidb/pull/17230) + - Fix the issue of upgrade failure from v3.1.1 to v4.0 because of the incompatible `mysql.user` table [#17300](https://github.com/pingcap/tidb/pull/17300) + - Fix the issue of incorrect selection of the partition in the `update` statement [#17305](https://github.com/pingcap/tidb/pull/17305) + - Fix system panics when receiving an unknown error message from TiKV [#17380](https://github.com/pingcap/tidb/pull/17380) + - Fix system panics caused by incorrect processing logic when creating the table that is `key` partitioned [#17242](https://github.com/pingcap/tidb/pull/17242) + - Fix the issue that the wrong `Index Merge Join` plan is selected because of incorrect optimizer processing logic [#17365](https://github.com/pingcap/tidb/pull/17365) + - Fix the issue of inaccurate `duration` monitoring metric of the `SELECT` statement in Grafana [#16561](https://github.com/pingcap/tidb/pull/16561) + - Fix the issue that the GC worker is blocked when the system error occurs [#16915](https://github.com/pingcap/tidb/pull/16915) + - Fix the issue that the UNIQUE constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) + - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partition table [#17328](https://github.com/pingcap/tidb/pull/17328) + - Fix the issue of accessing failed TiKV nodes in some cases #17342 + - Fix the issue that the ` isolation-read ` configuration item in `tidb.toml` does not take effect [#17342](https://github.com/pingcap/tidb/pull/17342) + - Fix the issue that the ` isolation-read ` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) + - Fix the issue of incorrect order of output results due to incorrect processing logic when `hint` is used to enforce the stream aggregation [#17347](https://github.com/pingcap/tidb/pull/17347) + - Fix the behavior that `insert` processes DIV under different `SQL_MODE` [#17314](https://github.com/pingcap/tidb/pull/17314) + +* TiFlash + - Fix the issue that the matching behavior of regular expressions in the search log feature is inconsistent with other components + - Fix the issue of excessive restart time when nodes write large amounts of data by disabling the delay processing optimization of `Raft Compact Log Command` by default + - Fix the issue that the system fails to start because TiDB incorrectly processes the `DROP DATABASE` statement in some scenarios + - Fix the issue that the method of collecting CPU information in `Server_info` is different from that in other components + - Fix the issue that the error `Too Many Pings` is reported when the `Query` statement is executed if `batch coprocessor` is enabled + - Fix the issue that Dashboard fails to display the correct `deploy path` information because TiFlash does not report the related information + +* TiKV + - Fix the `DefaultNotFound` error that occurs when backing up using BR [#7937](https://github.com/tikv/tikv/pull/7937) + - Fix system panics caused by out-of-order `ReadIndex` packets [#7930](https://github.com/tikv/tikv/pull/7930) + - Fix the unexpected error is returned because the read request callback function is not called [#7921](https://github.com/tikv/tikv/pull/7921) + - Fix system panics caused by incorrectly removing snapshot files when TiKV is restarted [#7927](https://github.com/tikv/tikv/pull/7927) + - Fix the issue that the `master key` cannot be rotated due to incorrect processing logic in storage encryption [#7898](https://github.com/tikv/tikv/pull/7898) + - Fix the issue that the received `lock cf` file of the snapshot is not encrypted when the storage encryption is enabled [#7922](https://github.com/tikv/tikv/pull/7922) + +* PD + - Fix the 404 error when deleting `evict-leader-scheduler` or `grant-leader-scheduler` using pd-ctl [#2446](https://github.com/pingcap/pd/pull/2446) + - Fix the issue that the `presplit` feature might not work properly when the TiFlash replica exists [#2447](https://github.com/pingcap/pd/pull/2447) + +* Tools + + + BR + - Fix the issue that the data restoration fails due to network issues when BR restores data from cloud storage [#298](https://github.com/pingcap/br/pull/298) + + TiCDC + - Fix system panics caused by data race [#565](https://github.com/pingcap/ticdc/pull/565) [#566](https://github.com/pingcap/ticdc/pull/566) + - Fix resource leaks or system blockages caused by incorrect processing logic [#574](https://github.com/pingcap/ticdc/pull/574) [#586](https://github.com/pingcap/ticdc/pull/586) + - Fix the issue that the command line gets stuck because CLI cannot connect to PD [#579](https://github.com/pingcap/ticdc/pull/579) diff --git a/releases/release-notes.md b/releases/release-notes.md index c2764f19673b1..e514005b444fd 100644 --- a/releases/release-notes.md +++ b/releases/release-notes.md @@ -8,6 +8,7 @@ aliases: ['/docs/dev/releases/rn/'] ## 4.0 +- [4.0.0 GA](/releases/release-4.0.0-ga.md) - [4.0.0-rc.2](/releases/release-4.0.0-rc.2.md) - [4.0.0-rc.1](/releases/release-4.0.0-rc.1.md) - [4.0.0-rc](/releases/release-4.0.0-rc.md) From fbd40f20e3016561a0d41427c53020f498e3a770 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 18:34:45 +0800 Subject: [PATCH 02/16] fix ci --- releases/release-4.0.0-ga.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 5232b517c4792..8ecb401a63796 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -81,8 +81,8 @@ TiDB version: 4.0.0 GA - Fix the issue that the UNIQUE constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partition table [#17328](https://github.com/pingcap/tidb/pull/17328) - Fix the issue of accessing failed TiKV nodes in some cases #17342 - - Fix the issue that the ` isolation-read ` configuration item in `tidb.toml` does not take effect [#17342](https://github.com/pingcap/tidb/pull/17342) - - Fix the issue that the ` isolation-read ` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) + - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17342](https://github.com/pingcap/tidb/pull/17342) + - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) - Fix the issue of incorrect order of output results due to incorrect processing logic when `hint` is used to enforce the stream aggregation [#17347](https://github.com/pingcap/tidb/pull/17347) - Fix the behavior that `insert` processes DIV under different `SQL_MODE` [#17314](https://github.com/pingcap/tidb/pull/17314) From b657a5f1e060f82a5fb680bb7041bc74467d8b63 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 18:51:00 +0800 Subject: [PATCH 03/16] resolve error --- releases/release-4.0.0-ga.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 8ecb401a63796..5ea5f3bee00c3 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -27,7 +27,6 @@ TiDB version: 4.0.0 GA * TiFlash - Fix the possible data loss issue that occurs when the system panics because of incorrect processing logic of `Raft Admin Command` - New features ## New features @@ -53,7 +52,7 @@ TiDB version: 4.0.0 GA * PD - Support specifying the reverse proxy resource prefix for built-in TiDB Dashboard [#2457](https://github.com/pingcap/pd/pull/2457) - Support returning the `pending peer` and `down peer` information in interfaces of the PD client Region [#2443](https://github.com/pingcap/pd/pull/2443) - - Add monitoring items such as `Direction of hotspot move leader`, `Direction of hotspot move peer`, `Hot cache read entry number` [#2448](https://github.com/pingcap/pd/pull/2448) + - Add monitoring items such as `Direction of hotspot move leader`, `Direction of hotspot move peer`, and `Hot cache read entry number` [#2448](https://github.com/pingcap/pd/pull/2448) * Tools + BR @@ -80,8 +79,7 @@ TiDB version: 4.0.0 GA - Fix the issue that the GC worker is blocked when the system error occurs [#16915](https://github.com/pingcap/tidb/pull/16915) - Fix the issue that the UNIQUE constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partition table [#17328](https://github.com/pingcap/tidb/pull/17328) - - Fix the issue of accessing failed TiKV nodes in some cases #17342 - - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17342](https://github.com/pingcap/tidb/pull/17342) + - Fix the issue of accessing failed TiKV nodes in some cases [#17342](https://github.com/pingcap/tidb/pull/17342) - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) - Fix the issue of incorrect order of output results due to incorrect processing logic when `hint` is used to enforce the stream aggregation [#17347](https://github.com/pingcap/tidb/pull/17347) - Fix the behavior that `insert` processes DIV under different `SQL_MODE` [#17314](https://github.com/pingcap/tidb/pull/17314) From f9d43403991a7e2658cf7e229906fa0b085c7c77 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 18:56:10 +0800 Subject: [PATCH 04/16] format error --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 5ea5f3bee00c3..2470a4522bdec 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -35,7 +35,7 @@ TiDB version: 4.0.0 GA - Support the `show table partition regions` syntax [#17294](https://github.com/pingcap/tidb/pull/17294) - Add the `tmp-storage-quota` configuration item to limit the temporary disk space used by the TiDB server [#15700](https://github.com/pingcap/tidb/pull/15700) - Support checking whether the partition table uses a unique prefix index when creating and changing tables [#17213](https://github.com/pingcap/tidb/pull/17213) - - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) + - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) - Support checking the value of `collations` when using the `Distinct` function [#17240](https://github.com/pingcap/tidb/pull/17240) - Support the `is null` filter condition during the Hash partition pruning [#17310](https://github.com/pingcap/tidb/pull/17310) - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partition tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) From c69d1e9216e565899e807cf70bbcec9f31568d71 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 19:52:03 +0800 Subject: [PATCH 05/16] format --- releases/release-4.0.0-ga.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 2470a4522bdec..8f88a0cfa041d 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -38,7 +38,7 @@ TiDB version: 4.0.0 GA - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) - Support checking the value of `collations` when using the `Distinct` function [#17240](https://github.com/pingcap/tidb/pull/17240) - Support the `is null` filter condition during the Hash partition pruning [#17310](https://github.com/pingcap/tidb/pull/17310) - - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partition tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) + - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partition tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) - Support range partition pruning for the `in` expressions [#17320](https://github.com/pingcap/tidb/pull/17320) * TiFlash @@ -55,7 +55,7 @@ TiDB version: 4.0.0 GA - Add monitoring items such as `Direction of hotspot move leader`, `Direction of hotspot move peer`, and `Hot cache read entry number` [#2448](https://github.com/pingcap/pd/pull/2448) * Tools - + BR + + Backup & Restore (BR) - Support the backup and restore of `Sequence` and `View` [#242](https://github.com/pingcap/br/pull/242) + TiCDC From 25577f847e63e02e671ce27d21964bc72470828c Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:35:00 +0800 Subject: [PATCH 06/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 8f88a0cfa041d..493c3fc69126b 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -9,7 +9,7 @@ Release date: May 28, 2020 TiDB version: 4.0.0 GA -## Compatibility changes +## Compatibility Changes * TiDB - Optimize the error message of the large-sized transactions for easier troubleshooting [#17219](https://github.com/pingcap/tidb/pull/17219) From fe0d5d5ac8f22c156a2bf5917c6bb10380403b33 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:35:16 +0800 Subject: [PATCH 07/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 493c3fc69126b..dfeef3a48f924 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -22,7 +22,7 @@ TiDB version: 4.0.0 GA * TiKV - Fix the `DefaultNotFound` error that occurs when backing up using Backup & Restore (BR) [#7937](https://github.com/tikv/tikv/pull/7937) - - Fix system panics caused by the out-of-order `ReadIndex` packages [#7930](https://github.com/tikv/tikv/pull/7930) + - Fix system panics caused by the out-of-order `ReadIndex` packages [#7930](https://github.com/tikv/tikv/pull/7930) - Fix system panics caused by incorrectly removing snapshot files after TiKV is restarted [#7927](https://github.com/tikv/tikv/pull/7927) * TiFlash From 1e39bee9172dca9da9c3b517baf74fd6479a5a85 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:35:27 +0800 Subject: [PATCH 08/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index dfeef3a48f924..9c5030c142d3d 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -77,7 +77,7 @@ TiDB version: 4.0.0 GA - Fix the issue that the wrong `Index Merge Join` plan is selected because of incorrect optimizer processing logic [#17365](https://github.com/pingcap/tidb/pull/17365) - Fix the issue of inaccurate `duration` monitoring metric of the `SELECT` statement in Grafana [#16561](https://github.com/pingcap/tidb/pull/16561) - Fix the issue that the GC worker is blocked when the system error occurs [#16915](https://github.com/pingcap/tidb/pull/16915) - - Fix the issue that the UNIQUE constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) + - Fix the issue that the `UNIQUE` constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partition table [#17328](https://github.com/pingcap/tidb/pull/17328) - Fix the issue of accessing failed TiKV nodes in some cases [#17342](https://github.com/pingcap/tidb/pull/17342) - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) From 04dc386de495f0b115b86a0f67f3e0772b9127b0 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:35:40 +0800 Subject: [PATCH 09/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 9c5030c142d3d..05313c2f87446 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -34,7 +34,7 @@ TiDB version: 4.0.0 GA - Add the `committer-concurrency` configuration item to control the number of `goroutines` in the retry-commit phase [#16849](https://github.com/pingcap/tidb/pull/16849) - Support the `show table partition regions` syntax [#17294](https://github.com/pingcap/tidb/pull/17294) - Add the `tmp-storage-quota` configuration item to limit the temporary disk space used by the TiDB server [#15700](https://github.com/pingcap/tidb/pull/15700) - - Support checking whether the partition table uses a unique prefix index when creating and changing tables [#17213](https://github.com/pingcap/tidb/pull/17213) + - Support checking whether the partitioned table uses a unique prefix index when creating and changing tables [#17213](https://github.com/pingcap/tidb/pull/17213) - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) - Support checking the value of `collations` when using the `Distinct` function [#17240](https://github.com/pingcap/tidb/pull/17240) - Support the `is null` filter condition during the Hash partition pruning [#17310](https://github.com/pingcap/tidb/pull/17310) From b4ec85b7588d4e3405216eabfb9ff5fced617bb6 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:36:05 +0800 Subject: [PATCH 10/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 05313c2f87446..9e1a3ddd5c15a 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -78,7 +78,7 @@ TiDB version: 4.0.0 GA - Fix the issue of inaccurate `duration` monitoring metric of the `SELECT` statement in Grafana [#16561](https://github.com/pingcap/tidb/pull/16561) - Fix the issue that the GC worker is blocked when the system error occurs [#16915](https://github.com/pingcap/tidb/pull/16915) - Fix the issue that the `UNIQUE` constraint on a boolean column results in an incorrect result in a comparison [#17306](https://github.com/pingcap/tidb/pull/17306) - - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partition table [#17328](https://github.com/pingcap/tidb/pull/17328) + - Fix system panics caused by incorrect processing logic when `tidb_opt_agg_push_down` is enabled and the aggregation function pushes down the partitioned table [#17328](https://github.com/pingcap/tidb/pull/17328) - Fix the issue of accessing failed TiKV nodes in some cases [#17342](https://github.com/pingcap/tidb/pull/17342) - Fix the issue that the `isolation-read` configuration item in `tidb.toml` does not take effect [#17322](https://github.com/pingcap/tidb/pull/17322) - Fix the issue of incorrect order of output results due to incorrect processing logic when `hint` is used to enforce the stream aggregation [#17347](https://github.com/pingcap/tidb/pull/17347) From f974129df1150a78604b548bffd0d0032f504f48 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:36:13 +0800 Subject: [PATCH 11/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 9e1a3ddd5c15a..51f5c4faef7ea 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -90,7 +90,7 @@ TiDB version: 4.0.0 GA - Fix the issue that the system fails to start because TiDB incorrectly processes the `DROP DATABASE` statement in some scenarios - Fix the issue that the method of collecting CPU information in `Server_info` is different from that in other components - Fix the issue that the error `Too Many Pings` is reported when the `Query` statement is executed if `batch coprocessor` is enabled - - Fix the issue that Dashboard fails to display the correct `deploy path` information because TiFlash does not report the related information + - Fix the issue that Dashboard fails to display the correct `deploy path` information because TiFlash does not report the related information * TiKV - Fix the `DefaultNotFound` error that occurs when backing up using BR [#7937](https://github.com/tikv/tikv/pull/7937) From a2e5fbaae5f8ea2e57ebc283b34da5f519f19ddc Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:36:21 +0800 Subject: [PATCH 12/16] Update releases/release-4.0.0-ga.md Co-authored-by: Ran --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 51f5c4faef7ea..20193d01b0565 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -18,7 +18,7 @@ TiDB version: 4.0.0 GA - Optimize the structure of the `Changefeed` configuration file to improve usability [#588](https://github.com/pingcap/ticdc/pull/588) - Add the `ignore-txn-start-ts` configuration item, and change the condition from `commit_ts` to `start_ts` during transactions filtering [#589](https://github.com/pingcap/ticdc/pull/589) -## Important bug fixes +## Important Bug Fixes * TiKV - Fix the `DefaultNotFound` error that occurs when backing up using Backup & Restore (BR) [#7937](https://github.com/tikv/tikv/pull/7937) From 9074c1e184eef7ed0c1b065fe02c80f02e1b90fe Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 20:41:13 +0800 Subject: [PATCH 13/16] address comments --- releases/release-4.0.0-ga.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0.0-ga.md index 20193d01b0565..0498d39e65cb8 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0.0-ga.md @@ -38,7 +38,7 @@ TiDB version: 4.0.0 GA - Support the `insert/replace into tbl_name partition`(`partition_name_list`) statement [#17313](https://github.com/pingcap/tidb/pull/17313) - Support checking the value of `collations` when using the `Distinct` function [#17240](https://github.com/pingcap/tidb/pull/17240) - Support the `is null` filter condition during the Hash partition pruning [#17310](https://github.com/pingcap/tidb/pull/17310) - - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partition tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) + - Support `admin check index`, `admin cleanup index`, and `admin recover index` in partitioned tables [#17392](https://github.com/pingcap/tidb/pull/17392) [#17405](https://github.com/pingcap/tidb/pull/17405) [#17317](https://github.com/pingcap/tidb/pull/17317) - Support range partition pruning for the `in` expressions [#17320](https://github.com/pingcap/tidb/pull/17320) * TiFlash From 54c92a1d72d4eb91323600c690800cbecf224cd0 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Fri, 5 Jun 2020 21:12:52 +0800 Subject: [PATCH 14/16] update file name --- TOC.md | 2 +- releases/{release-4.0.0-ga.md => release-4.0-ga.md} | 6 +++--- releases/release-notes.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename releases/{release-4.0.0-ga.md => release-4.0-ga.md} (99%) diff --git a/TOC.md b/TOC.md index b46f3b76b3f80..9ca88f45dffc5 100644 --- a/TOC.md +++ b/TOC.md @@ -420,7 +420,7 @@ - [Roadmap](/roadmap.md) + [Releases](/releases/release-notes.md) + v4.0 - - [4.0.0 GA](/releases/release-4.0.0-ga.md) + - [4.0 GA](/releases/release-4.0-ga.md) - [4.0.0-rc.2](/releases/release-4.0.0-rc.2.md) - [4.0.0-rc.1](/releases/release-4.0.0-rc.1.md) - [4.0.0-rc](/releases/release-4.0.0-rc.md) diff --git a/releases/release-4.0.0-ga.md b/releases/release-4.0-ga.md similarity index 99% rename from releases/release-4.0.0-ga.md rename to releases/release-4.0-ga.md index 0498d39e65cb8..a99e3abf11717 100644 --- a/releases/release-4.0.0-ga.md +++ b/releases/release-4.0-ga.md @@ -1,13 +1,13 @@ --- -title: TiDB 4.0.0 GA Release Notes +title: TiDB 4.0 GA Release Notes category: Releases --- -# TiDB 4.0.0 GA Release Notes +# TiDB 4.0 GA Release Notes Release date: May 28, 2020 -TiDB version: 4.0.0 GA +TiDB version: 4.0.0 ## Compatibility Changes diff --git a/releases/release-notes.md b/releases/release-notes.md index e514005b444fd..f1b5198aa9e9d 100644 --- a/releases/release-notes.md +++ b/releases/release-notes.md @@ -8,7 +8,7 @@ aliases: ['/docs/dev/releases/rn/'] ## 4.0 -- [4.0.0 GA](/releases/release-4.0.0-ga.md) +- [4.0 GA](/releases/release-4.0-ga.md) - [4.0.0-rc.2](/releases/release-4.0.0-rc.2.md) - [4.0.0-rc.1](/releases/release-4.0.0-rc.1.md) - [4.0.0-rc](/releases/release-4.0.0-rc.md) From 5a8d2087bbe0db9af4f33d9be0a831ef6e557e11 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Fri, 5 Jun 2020 21:20:38 +0800 Subject: [PATCH 15/16] Apply suggestions from code review --- releases/release-4.0-ga.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-4.0-ga.md b/releases/release-4.0-ga.md index a99e3abf11717..87b81df0e22ec 100644 --- a/releases/release-4.0-ga.md +++ b/releases/release-4.0-ga.md @@ -28,7 +28,7 @@ TiDB version: 4.0.0 * TiFlash - Fix the possible data loss issue that occurs when the system panics because of incorrect processing logic of `Raft Admin Command` -## New features +## New Features * TiDB - Add the `committer-concurrency` configuration item to control the number of `goroutines` in the retry-commit phase [#16849](https://github.com/pingcap/tidb/pull/16849) @@ -64,7 +64,7 @@ TiDB version: 4.0.0 - Support scheduling multiple tables in the same scheduling task generation cycle [#572](https://github.com/pingcap/ticdc/pull/572) - Add information about node roles in HTTP API [#591](https://github.com/pingcap/ticdc/pull/591) -## Bug fixes +## Bug Fixes * TiDB From 2e87ce6a5a42c0c6dcb30967d7f092d5ce141806 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Fri, 5 Jun 2020 21:39:38 +0800 Subject: [PATCH 16/16] Apply suggestions from code review --- releases/release-4.0-ga.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/releases/release-4.0-ga.md b/releases/release-4.0-ga.md index 87b81df0e22ec..5431854a1a727 100644 --- a/releases/release-4.0-ga.md +++ b/releases/release-4.0-ga.md @@ -43,7 +43,7 @@ TiDB version: 4.0.0 * TiFlash - Support filtering out the data corresponding to the qualified `TSO` through the `min commit ts` value of the `Lock CF` when the Learner reads the data - - Add the feature that the system explicitly reports an error to avoid incorrect calculation result when the value of `TIMESTAMP` type is less than `1970-01-01 00:00:00` + - Add the feature that the system explicitly reports an error to avoid incorrect calculation results when the value of `TIMESTAMP` type is less than `1970-01-01 00:00:00` - Support using flags in regular expressions when searching logs * TiKV @@ -58,7 +58,6 @@ TiDB version: 4.0.0 + Backup & Restore (BR) - Support the backup and restore of `Sequence` and `View` [#242](https://github.com/pingcap/br/pull/242) + TiCDC - - Support checking the validity of `Sink URI` when creating `Changefeed` [#561](https://github.com/pingcap/ticdc/pull/561) - Support checking whether the PD and TiKV versions meet the system requirements during system startup [#570](https://github.com/pingcap/ticdc/pull/570) - Support scheduling multiple tables in the same scheduling task generation cycle [#572](https://github.com/pingcap/ticdc/pull/572) @@ -85,6 +84,7 @@ TiDB version: 4.0.0 - Fix the behavior that `insert` processes DIV under different `SQL_MODE` [#17314](https://github.com/pingcap/tidb/pull/17314) * TiFlash + - Fix the issue that the matching behavior of regular expressions in the search log feature is inconsistent with other components - Fix the issue of excessive restart time when nodes write large amounts of data by disabling the delay processing optimization of `Raft Compact Log Command` by default - Fix the issue that the system fails to start because TiDB incorrectly processes the `DROP DATABASE` statement in some scenarios @@ -93,14 +93,16 @@ TiDB version: 4.0.0 - Fix the issue that Dashboard fails to display the correct `deploy path` information because TiFlash does not report the related information * TiKV + - Fix the `DefaultNotFound` error that occurs when backing up using BR [#7937](https://github.com/tikv/tikv/pull/7937) - Fix system panics caused by out-of-order `ReadIndex` packets [#7930](https://github.com/tikv/tikv/pull/7930) - - Fix the unexpected error is returned because the read request callback function is not called [#7921](https://github.com/tikv/tikv/pull/7921) + - Fix the issue that an unexpected error is returned because the read request callback function is not called [#7921](https://github.com/tikv/tikv/pull/7921) - Fix system panics caused by incorrectly removing snapshot files when TiKV is restarted [#7927](https://github.com/tikv/tikv/pull/7927) - Fix the issue that the `master key` cannot be rotated due to incorrect processing logic in storage encryption [#7898](https://github.com/tikv/tikv/pull/7898) - Fix the issue that the received `lock cf` file of the snapshot is not encrypted when the storage encryption is enabled [#7922](https://github.com/tikv/tikv/pull/7922) * PD + - Fix the 404 error when deleting `evict-leader-scheduler` or `grant-leader-scheduler` using pd-ctl [#2446](https://github.com/pingcap/pd/pull/2446) - Fix the issue that the `presplit` feature might not work properly when the TiFlash replica exists [#2447](https://github.com/pingcap/pd/pull/2447)