From eb3610c7753049694ae7baf4a9c4a64ae96c7cb7 Mon Sep 17 00:00:00 2001 From: ti-srebot Date: Tue, 23 Mar 2021 19:51:00 +0800 Subject: [PATCH 01/15] update v4.0.12 release notes at 2021-03-23T19:50:59 Signed-off-by: ti-srebot --- releases/4.0.12.md | 81 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 releases/4.0.12.md diff --git a/releases/4.0.12.md b/releases/4.0.12.md new file mode 100644 index 0000000000000..ffe1ca3927301 --- /dev/null +++ b/releases/4.0.12.md @@ -0,0 +1,81 @@ +--- +title: tidb v4.0.12 Release Notes +category: Releases +aliases: ['/docs/dev/releases/v4.0.12/'] +--- + +# tidb v4.0.12 Release Notes + +Release date: March 23, 2021 + +TiDB version: v4.0.12 + +## Bug Fixes + ++ PD + + - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) + - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + ++ TiFlash + + - Fix the issue that binary type column's default value containing leading zero bytes is trimmed and does not contain padded tailing zero bytes [#1571](https://github.com/pingcap/tics/pull/1571) + - Fix the bug that TiFlash fail to sync schema if the database name contains special character [#1559](https://github.com/pingcap/tics/pull/1559) + - Use an adaptive aggressive GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) + - Fix wrong result of IN function [#1532](https://github.com/pingcap/tics/pull/1532) + - Fix the bug that opened file count shown in Grafana is high [#1503](https://github.com/pingcap/tics/pull/1503) + - Support timestamp literal in dag requeset [#1501](https://github.com/pingcap/tics/pull/1501) + - Fix potential segmentation fault in TiFlash [#1491](https://github.com/pingcap/tics/pull/1491) + - Fix problem CastStringAsInt may produce wrong result. [#1481](https://github.com/pingcap/tics/pull/1481) + - Fix a bug that the `like` function may return wrong result [#1461](https://github.com/pingcap/tics/pull/1461) + ++ Tools + + - BR + + * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) + * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) + * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) + +## Improvements + ++ TiFlash + + - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) + - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) + +## New Features + ++ TiFlash + + - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) + +## Others + ++ TiKV + + - Fix missing space when casting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) + - Change the default `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + ++ PD + + - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + ++ Tools + + - BR + + * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) + * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) + * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) + * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) + * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + + - TiCDC + + * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) + * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) + * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) + * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) + * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) From 92e0014e3321f02a6fda51eec5788869b40140db Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 23 Mar 2021 20:00:18 +0800 Subject: [PATCH 02/15] add TOC --- TOC.md | 1 + releases/{4.0.12.md => release-4.0.12.md} | 66 +++++++++++------------ releases/release-notes.md | 1 + 3 files changed, 34 insertions(+), 34 deletions(-) rename releases/{4.0.12.md => release-4.0.12.md} (71%) diff --git a/TOC.md b/TOC.md index db61b748bee2c..9e704fcc842ba 100644 --- a/TOC.md +++ b/TOC.md @@ -528,6 +528,7 @@ + v5.0 + [5.0.0-rc](/releases/release-5.0.0-rc.md) + v4.0 + + [4.0.12](/releases/release-4.0.12.md) + [4.0.11](/releases/release-4.0.11.md) + [4.0.10](/releases/release-4.0.10.md) + [4.0.9](/releases/release-4.0.9.md) diff --git a/releases/4.0.12.md b/releases/release-4.0.12.md similarity index 71% rename from releases/4.0.12.md rename to releases/release-4.0.12.md index ffe1ca3927301..6594960299056 100644 --- a/releases/4.0.12.md +++ b/releases/release-4.0.12.md @@ -1,14 +1,25 @@ --- -title: tidb v4.0.12 Release Notes -category: Releases -aliases: ['/docs/dev/releases/v4.0.12/'] +title: TiDB 4.0.12 Release Notes --- -# tidb v4.0.12 Release Notes +# TiDB 4.0.12 Release Notes -Release date: March 23, 2021 +Release date: March 31, 2021 -TiDB version: v4.0.12 +TiDB version: 4.0.12 + +## New Features + ++ TiFlash + + - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) + +## Improvements + ++ TiFlash + + - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash [#1535](https://github.com/pingcap/tics/pull/1535) + - Reduce the size of TiFlash binary file [#1414](https://github.com/pingcap/tics/pull/1414) ## Bug Fixes @@ -31,24 +42,11 @@ TiDB version: v4.0.12 + Tools - - BR + - Backup & Restore (BR) - * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) - * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) - * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) - -## Improvements - -+ TiFlash - - - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) - - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) - -## New Features - -+ TiFlash - - - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) + - Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) + - No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) + - Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) ## Others @@ -65,17 +63,17 @@ TiDB version: v4.0.12 - BR - * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) - * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) - * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) - * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) - * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) - * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + - Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + - Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) + - BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) + - Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) + - Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) + - Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) - TiCDC - * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) - * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) - * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) - * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) - * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) + - Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) + - Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) + - No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) + - Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) + - No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) diff --git a/releases/release-notes.md b/releases/release-notes.md index 903f159c0862d..f6c650f801ef8 100644 --- a/releases/release-notes.md +++ b/releases/release-notes.md @@ -11,6 +11,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/'] ## 4.0 +- [4.0.12](/releases/release-4.0.12.md) - [4.0.11](/releases/release-4.0.11.md) - [4.0.10](/releases/release-4.0.10.md) - [4.0.9](/releases/release-4.0.9.md) From 07295e51d3f30a3b44d59881b016b083faea3121 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 24 Mar 2021 11:29:36 +0800 Subject: [PATCH 03/15] Update release-4.0.12.md --- releases/release-4.0.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 6594960299056..bab4d16b0fd3c 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -48,7 +48,7 @@ TiDB version: 4.0.12 - No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) - Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) -## Others +## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 + TiKV From 3ca90d1f03f10d78d9bbfcaf63d3eed4bdb6b493 Mon Sep 17 00:00:00 2001 From: ti-srebot Date: Fri, 26 Mar 2021 16:06:43 +0800 Subject: [PATCH 04/15] update v4.0.12 release notes at 2021-03-26T16:06:43 Signed-off-by: ti-srebot --- releases/4.0.12.md | 119 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 releases/4.0.12.md diff --git a/releases/4.0.12.md b/releases/4.0.12.md new file mode 100644 index 0000000000000..5089a4ad2240e --- /dev/null +++ b/releases/4.0.12.md @@ -0,0 +1,119 @@ +--- +title: tidb v4.0.12 Release Notes +category: Releases +aliases: ['/docs/dev/releases/v4.0.12/'] +--- + +# tidb v4.0.12 Release Notes + +Release date: March 26, 2021 + +TiDB version: v4.0.12 + +## New Features + ++ TiFlash + + - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) + +## Bug Fixes + ++ TiDB + + - Fix get var expr when session var is hex literal [#23372](https://github.com/pingcap/tidb/pull/23372) + - Fix the bug that wrong collation is used when try fast path for enum or set [#23292](https://github.com/pingcap/tidb/pull/23292) + - Wrong result of nullif expr when used with is null expr [#23279](https://github.com/pingcap/tidb/pull/23279) + - Statistics: fix a case that auto-analyze is triggered outside its time range [#23219](https://github.com/pingcap/tidb/pull/23219) + - Executor: fix cast function will ignore the error for point get key construction [#23211](https://github.com/pingcap/tidb/pull/23211) + - Fixed a bug that prevented SPM from taking effect [#23209](https://github.com/pingcap/tidb/pull/23209) + - Fix wrong table filters for index merge plan [#23165](https://github.com/pingcap/tidb/pull/23165) + - Fix unexpected NotNullFlag in case when expr ret type [#23135](https://github.com/pingcap/tidb/pull/23135) + - Fix a bug that collation is not handle for text type [#23092](https://github.com/pingcap/tidb/pull/23092) + - Fix range partition prune bug for IN expr [#23074](https://github.com/pingcap/tidb/pull/23074) + - Fix request block forever when replace a tombstone store with the store has same IP addr [#23071](https://github.com/pingcap/tidb/pull/23071) + - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) + - Do not ajust int when it is null and compared year [#22844](https://github.com/pingcap/tidb/pull/22844) + - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) + - Fix load data lost connection error on tables with auto_random column [#22736](https://github.com/pingcap/tidb/pull/22736) + - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) + - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) + ++ PD + + - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) + - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + ++ TiFlash + + - Fix the issue that binary type column's default value containing leading zero bytes is trimmed and does not contain padded tailing zero bytes [#1571](https://github.com/pingcap/tics/pull/1571) + - Fix the bug that TiFlash fail to sync schema if the database name contains special character [#1559](https://github.com/pingcap/tics/pull/1559) + - Use an adaptive aggressive data GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) + - Fix wrong result of IN function [#1532](https://github.com/pingcap/tics/pull/1532) + - Fix the bug that opened file count shown in Grafana is high [#1503](https://github.com/pingcap/tics/pull/1503) + - Support timestamp literal in dag requeset [#1501](https://github.com/pingcap/tics/pull/1501) + - Fix potential segmentation fault in TiFlash [#1491](https://github.com/pingcap/tics/pull/1491) + - Fix problem CastStringAsInt may produce wrong result. [#1481](https://github.com/pingcap/tics/pull/1481) + - Fix a bug that the `like` function may return wrong result [#1461](https://github.com/pingcap/tics/pull/1461) + ++ Tools + + - BR + + * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) + * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) + * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) + +## Improvements + ++ TiFlash + + - Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638) + - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) + - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) + +## Others + ++ TiDB + + - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) + - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) + - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) + - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) + - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) + - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) + - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) + - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) + ++ TiKV + + - Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) + - Fix IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) + - Fix the issue that ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) + - Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) + - Fix missing space when casting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) + - Change the default `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + ++ PD + + - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + ++ Tools + + - BR + + * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) + * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) + * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) + * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) + * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + + - TiCDC + + * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) + * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) + * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) + * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) + * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) From b9cb4d115ceed9e5e54a1c6992cd60e98df52437 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 26 Mar 2021 16:23:12 +0800 Subject: [PATCH 05/15] Update releases/4.0.12.md --- releases/4.0.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/4.0.12.md b/releases/4.0.12.md index 5089a4ad2240e..b874ceabf021a 100644 --- a/releases/4.0.12.md +++ b/releases/4.0.12.md @@ -71,7 +71,7 @@ TiDB version: v4.0.12 - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) -## Others +## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 + TiDB From 8ba4ab969a288a31b44de1bf03b8217d70602ad6 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 26 Mar 2021 16:36:07 +0800 Subject: [PATCH 06/15] update --- releases/4.0.12.md | 119 ------------------------------------- releases/release-4.0.12.md | 74 +++++++++++++++++------ 2 files changed, 56 insertions(+), 137 deletions(-) delete mode 100644 releases/4.0.12.md diff --git a/releases/4.0.12.md b/releases/4.0.12.md deleted file mode 100644 index b874ceabf021a..0000000000000 --- a/releases/4.0.12.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -title: tidb v4.0.12 Release Notes -category: Releases -aliases: ['/docs/dev/releases/v4.0.12/'] ---- - -# tidb v4.0.12 Release Notes - -Release date: March 26, 2021 - -TiDB version: v4.0.12 - -## New Features - -+ TiFlash - - - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) - -## Bug Fixes - -+ TiDB - - - Fix get var expr when session var is hex literal [#23372](https://github.com/pingcap/tidb/pull/23372) - - Fix the bug that wrong collation is used when try fast path for enum or set [#23292](https://github.com/pingcap/tidb/pull/23292) - - Wrong result of nullif expr when used with is null expr [#23279](https://github.com/pingcap/tidb/pull/23279) - - Statistics: fix a case that auto-analyze is triggered outside its time range [#23219](https://github.com/pingcap/tidb/pull/23219) - - Executor: fix cast function will ignore the error for point get key construction [#23211](https://github.com/pingcap/tidb/pull/23211) - - Fixed a bug that prevented SPM from taking effect [#23209](https://github.com/pingcap/tidb/pull/23209) - - Fix wrong table filters for index merge plan [#23165](https://github.com/pingcap/tidb/pull/23165) - - Fix unexpected NotNullFlag in case when expr ret type [#23135](https://github.com/pingcap/tidb/pull/23135) - - Fix a bug that collation is not handle for text type [#23092](https://github.com/pingcap/tidb/pull/23092) - - Fix range partition prune bug for IN expr [#23074](https://github.com/pingcap/tidb/pull/23074) - - Fix request block forever when replace a tombstone store with the store has same IP addr [#23071](https://github.com/pingcap/tidb/pull/23071) - - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) - - Do not ajust int when it is null and compared year [#22844](https://github.com/pingcap/tidb/pull/22844) - - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) - - Fix load data lost connection error on tables with auto_random column [#22736](https://github.com/pingcap/tidb/pull/22736) - - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) - - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) - -+ PD - - - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) - - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) - -+ TiFlash - - - Fix the issue that binary type column's default value containing leading zero bytes is trimmed and does not contain padded tailing zero bytes [#1571](https://github.com/pingcap/tics/pull/1571) - - Fix the bug that TiFlash fail to sync schema if the database name contains special character [#1559](https://github.com/pingcap/tics/pull/1559) - - Use an adaptive aggressive data GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) - - Fix wrong result of IN function [#1532](https://github.com/pingcap/tics/pull/1532) - - Fix the bug that opened file count shown in Grafana is high [#1503](https://github.com/pingcap/tics/pull/1503) - - Support timestamp literal in dag requeset [#1501](https://github.com/pingcap/tics/pull/1501) - - Fix potential segmentation fault in TiFlash [#1491](https://github.com/pingcap/tics/pull/1491) - - Fix problem CastStringAsInt may produce wrong result. [#1481](https://github.com/pingcap/tics/pull/1481) - - Fix a bug that the `like` function may return wrong result [#1461](https://github.com/pingcap/tics/pull/1461) - -+ Tools - - - BR - - * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) - * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) - * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) - -## Improvements - -+ TiFlash - - - Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638) - - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) - - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) - -## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 - -+ TiDB - - - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) - - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) - - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) - - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) - - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) - - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) - - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) - - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) - -+ TiKV - - - Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) - - Fix IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) - - Fix the issue that ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) - - Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) - - Fix missing space when casting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) - - Change the default `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) - -+ PD - - - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) - -+ Tools - - - BR - - * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) - * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) - * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) - * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) - * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) - * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) - - - TiCDC - - * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) - * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) - * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) - * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) - * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index bab4d16b0fd3c..5bb93a746daa4 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -18,11 +18,32 @@ TiDB version: 4.0.12 + TiFlash - - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash [#1535](https://github.com/pingcap/tics/pull/1535) - - Reduce the size of TiFlash binary file [#1414](https://github.com/pingcap/tics/pull/1414) + - Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638) + - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) + - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) ## Bug Fixes ++ TiDB + + - Fix get var expr when session var is hex literal [#23372](https://github.com/pingcap/tidb/pull/23372) + - Fix the bug that wrong collation is used when try fast path for enum or set [#23292](https://github.com/pingcap/tidb/pull/23292) + - Wrong result of nullif expr when used with is null expr [#23279](https://github.com/pingcap/tidb/pull/23279) + - Statistics: fix a case that auto-analyze is triggered outside its time range [#23219](https://github.com/pingcap/tidb/pull/23219) + - Executor: fix cast function will ignore the error for point get key construction [#23211](https://github.com/pingcap/tidb/pull/23211) + - Fixed a bug that prevented SPM from taking effect [#23209](https://github.com/pingcap/tidb/pull/23209) + - Fix wrong table filters for index merge plan [#23165](https://github.com/pingcap/tidb/pull/23165) + - Fix unexpected NotNullFlag in case when expr ret type [#23135](https://github.com/pingcap/tidb/pull/23135) + - Fix a bug that collation is not handle for text type [#23092](https://github.com/pingcap/tidb/pull/23092) + - Fix range partition prune bug for IN expr [#23074](https://github.com/pingcap/tidb/pull/23074) + - Fix request block forever when replace a tombstone store with the store has same IP addr [#23071](https://github.com/pingcap/tidb/pull/23071) + - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) + - Do not ajust int when it is null and compared year [#22844](https://github.com/pingcap/tidb/pull/22844) + - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) + - Fix load data lost connection error on tables with auto_random column [#22736](https://github.com/pingcap/tidb/pull/22736) + - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) + - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) + + PD - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) @@ -32,7 +53,7 @@ TiDB version: 4.0.12 - Fix the issue that binary type column's default value containing leading zero bytes is trimmed and does not contain padded tailing zero bytes [#1571](https://github.com/pingcap/tics/pull/1571) - Fix the bug that TiFlash fail to sync schema if the database name contains special character [#1559](https://github.com/pingcap/tics/pull/1559) - - Use an adaptive aggressive GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) + - Use an adaptive aggressive data GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) - Fix wrong result of IN function [#1532](https://github.com/pingcap/tics/pull/1532) - Fix the bug that opened file count shown in Grafana is high [#1503](https://github.com/pingcap/tics/pull/1503) - Support timestamp literal in dag requeset [#1501](https://github.com/pingcap/tics/pull/1501) @@ -42,16 +63,33 @@ TiDB version: 4.0.12 + Tools - - Backup & Restore (BR) + - BR - - Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) - - No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) - - Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) + * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) + * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) + * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) ## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 ++ TiDB + + - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) + - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) + - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) + - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) + - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) + - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) + - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) + - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) + + TiKV + - Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) + - Fix IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) + - Fix the issue that ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) + - Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) - Fix missing space when casting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) - Change the default `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) @@ -63,17 +101,17 @@ TiDB version: 4.0.12 - BR - - Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) - - Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) - - BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) - - Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) - - Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) - - Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) + * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) + * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) + * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) + * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) - TiCDC - - Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) - - Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) - - No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) - - Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) - - No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) + * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) + * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) + * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) + * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) + * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) From fabd85fc261d8a7a68eeb95cb73d60787f62e66c Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:57:42 +0800 Subject: [PATCH 07/15] update TiDB and TiFlash notes --- releases/release-4.0.12.md | 43 +++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 5bb93a746daa4..3a64c8cb74559 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -12,15 +12,30 @@ TiDB version: 4.0.12 + TiFlash - - Add tools to check exact tiflash replica status for online rolling update [#1512](https://github.com/pingcap/tics/pull/1512) + - Add tools to check exact status of `tiflash replica` for online rolling update ## Improvements ++ TiDB + + - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) + - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) + - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) + - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) + - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) + - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) + - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) + - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) + - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) + - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) + + TiFlash - Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638) - - Allow omitting deprecated "users.*" settings in the configuration file of TiFlash. [#1535](https://github.com/pingcap/tics/pull/1535) + - Optimize configuration file and remove useless items [#1535](https://github.com/pingcap/tics/pull/1535) - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) + - Use an adaptive aggressive GC strategy to reduce memory usage ## Bug Fixes @@ -37,12 +52,11 @@ TiDB version: 4.0.12 - Fix a bug that collation is not handle for text type [#23092](https://github.com/pingcap/tidb/pull/23092) - Fix range partition prune bug for IN expr [#23074](https://github.com/pingcap/tidb/pull/23074) - Fix request block forever when replace a tombstone store with the store has same IP addr [#23071](https://github.com/pingcap/tidb/pull/23071) - - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) - Do not ajust int when it is null and compared year [#22844](https://github.com/pingcap/tidb/pull/22844) - - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) - Fix load data lost connection error on tables with auto_random column [#22736](https://github.com/pingcap/tidb/pull/22736) - - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) - - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) + - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) + - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) + - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) + PD @@ -51,15 +65,14 @@ TiDB version: 4.0.12 + TiFlash - - Fix the issue that binary type column's default value containing leading zero bytes is trimmed and does not contain padded tailing zero bytes [#1571](https://github.com/pingcap/tics/pull/1571) - - Fix the bug that TiFlash fail to sync schema if the database name contains special character [#1559](https://github.com/pingcap/tics/pull/1559) - - Use an adaptive aggressive data GC strategy to avoid OOM [#1553](https://github.com/pingcap/tics/pull/1553) - - Fix wrong result of IN function [#1532](https://github.com/pingcap/tics/pull/1532) - - Fix the bug that opened file count shown in Grafana is high [#1503](https://github.com/pingcap/tics/pull/1503) - - Support timestamp literal in dag requeset [#1501](https://github.com/pingcap/tics/pull/1501) - - Fix potential segmentation fault in TiFlash [#1491](https://github.com/pingcap/tics/pull/1491) - - Fix problem CastStringAsInt may produce wrong result. [#1481](https://github.com/pingcap/tics/pull/1481) - - Fix a bug that the `like` function may return wrong result [#1461](https://github.com/pingcap/tics/pull/1461) + - Fix an issue of incorrect results when the default value of `binary` type column contains leading or tailing zero bytes + - Fix the bug that TiFlash fail to sync schema if the name of database contains special characters + - Fix an issue of incorrect results when handling `IN` expression with decimal values + - Fix the bug that metrics about opened file count shown in Grafana is high + - Fix the bug that TiFlash does not support `Timestamp` literal + - Fix the potential crash while handling `FROM_UNIXTIME` expression + - Fix an issue of incorrect results when casting string as integer + - Fix a bug that `like` function may return wrong result + Tools From e35f6241a1c14159f2c62549bf64c3be03e9602f Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Mon, 29 Mar 2021 11:50:39 +0800 Subject: [PATCH 08/15] Update release-4.0.12.md --- releases/release-4.0.12.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 3a64c8cb74559..a8c00379b7507 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -84,19 +84,6 @@ TiDB version: 4.0.12 ## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 -+ TiDB - - - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) - - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) - - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) - - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) - - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) - - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) - - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) - - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) - + TiKV - Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) From b370d36f5ff0c9d76a8f7015d3f311c5119c2d14 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:51:04 +0800 Subject: [PATCH 09/15] add tools and tikv and pd --- releases/release-4.0.12.md | 89 ++++++++++++++++++++++---------------- 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index a8c00379b7507..806b89774567d 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -28,15 +28,44 @@ TiDB version: 4.0.12 - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) - - Scattering truncated tables without pre-split option. [#22872](https://github.com/pingcap/tidb/pull/22872) + - Scattering truncated tables without pre-split option [#22872](https://github.com/pingcap/tidb/pull/22872) + ++ TiKV + + * Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) + * Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) + * Change the default value of `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + TiFlash - - Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638) - - Optimize configuration file and remove useless items [#1535](https://github.com/pingcap/tics/pull/1535) - - Reduce the size of TiFlash binary file. [#1414](https://github.com/pingcap/tics/pull/1414) + - Optimize configuration file and remove useless items + - Reduce the size of TiFlash binary file - Use an adaptive aggressive GC strategy to reduce memory usage ++ Tools + + + TiCDC + + - Add double confirm when creating or resuming changefeed with start-ts or checkpoint-ts 1 day before current ts [#1497](https://github.com/pingcap/ticdc/pull/1497) + + + Backup & Restore (BR) + + - Log `HTTP_PROXY` and `HTTPS_PROXY`. [#827](https://github.com/pingcap/br/pull/827) + - Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + - Report error if service safe point check fails. [#826](https://github.com/pingcap/br/pull/826) + - Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) + - Added retry for external storage errors. [#851](https://github.com/pingcap/br/pull/851) + - Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + + + TiDB Lightning + + - Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) + - Fail fast when lightning meets error in engine/chunk restore and do not retry context.Cancel error. [#867](https://github.com/pingcap/br/pull/867) + - Added configurations tikv-importer.engine-mem-cache-size and tikv-importer.local-writer-mem-cache-size to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) + - Run batch split regions in parallel for Lightning local backend. [#868](https://github.com/pingcap/br/pull/868) + - When using Lightning to import from S3, Lightning no longer require s3:ListBucket permission on the entire bucket, only the data source prefix itself. [#919](https://github.com/pingcap/br/pull/919) + - When resuming from checkpoint, Lightning now keeps restoring the original engines instead of starting to process some random new ones. [#924](https://github.com/pingcap/br/pull/924) + ## Bug Fixes + TiDB @@ -58,10 +87,17 @@ TiDB version: 4.0.12 - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) ++ TiKV + + - Fix the issue that the IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) + - Fix the issue that the ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) + - Fix the issue that the space missed when converting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) + + PD - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + TiFlash @@ -76,42 +112,19 @@ TiDB version: 4.0.12 + Tools - - BR - - * Fix the bug that lightning generated ts may be to large or small that query may return incorrect result. [#860](https://github.com/pingcap/br/pull/860) - * No release note (it's not released yet.) [#854](https://github.com/pingcap/br/pull/854) - * Fix the bug that importer may ignore write rows error if open engine returns `file exists` error [#848](https://github.com/pingcap/br/pull/848) - -## 请判断下面未分类 note,对下面 note 进行分类并移动到以上三个分类部分中 - -+ TiKV - - - Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) - - Fix IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) - - Fix the issue that ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) - - Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) - - Fix missing space when casting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) - - Change the default `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) - -+ PD - - - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + + TiCDC -+ Tools + - Fix a resolved ts event disorder problems caused by concurrency [#1464](https://github.com/pingcap/ticdc/pull/1464) + - Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time [#1508](https://github.com/pingcap/ticdc/pull/1508) - - BR + + Backup & Restore (BR) - * Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) - * Added configurations `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) - * BR would log `HTTP_PROXY` and `HTTPS_PROXY` now. [#827](https://github.com/pingcap/br/pull/827) - * Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) - * Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) - * Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) + - Fix the bug that WalkDir for s3 storage returns nil if the target path is bucket name. [#773](https://github.com/pingcap/br/pull/773) + - Fixed a bug that caused, even BR started with TLS config, the pprof endpoints won't be served with TLS. [#839](https://github.com/pingcap/br/pull/839) - - TiCDC + + TiDB Lightning - * Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time. [#1523](https://github.com/pingcap/ticdc/pull/1523) - * Add double confirm when creating or resuming changefeed with `start-ts` or `checkpoint-ts` 1 day before current ts. [#1499](https://github.com/pingcap/ticdc/pull/1499) - * No release note, the bug is never released [#1475](https://github.com/pingcap/ticdc/pull/1475) - * Fix a resolved ts event disorder problems caused by concurrency [#1472](https://github.com/pingcap/ticdc/pull/1472) - * No release note, this bug is never released [#1470](https://github.com/pingcap/ticdc/pull/1470) + - Fix a bug that importer may ignore write rows error if open engine returns file exists error. [#848](https://github.com/pingcap/br/pull/848) + - Fix a bug that lightning generated ts may be to large or small that query may return incorrect result. [#850](https://github.com/pingcap/br/pull/850) + - Fix a bug that lightning unexpected exit may cause checkpoint file truncated to 0 sized. [#889](https://github.com/pingcap/br/pull/889) + - Fix a bug that chunk restore task may ignore context cancel error and causes data loss. [#874](https://github.com/pingcap/br/pull/874) From fc13937e1718a6c29a92f216d2ffe435220f572c Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 30 Mar 2021 19:36:18 +0800 Subject: [PATCH 10/15] adjust the position of PD notes --- releases/release-4.0.12.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 806b89774567d..fa038d0e66e36 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -36,6 +36,11 @@ TiDB version: 4.0.12 * Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) * Change the default value of `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) ++ PD + + - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) + - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + + TiFlash - Optimize configuration file and remove useless items @@ -95,8 +100,6 @@ TiDB version: 4.0.12 + PD - - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) - - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + TiFlash @@ -120,11 +123,11 @@ TiDB version: 4.0.12 + Backup & Restore (BR) - Fix the bug that WalkDir for s3 storage returns nil if the target path is bucket name. [#773](https://github.com/pingcap/br/pull/773) - - Fixed a bug that caused, even BR started with TLS config, the pprof endpoints won't be served with TLS. [#839](https://github.com/pingcap/br/pull/839) + - Fixed a bug that caused, even BR started with TLS config, the pprof endpoints won't be served with TLS [#839](https://github.com/pingcap/br/pull/839) + TiDB Lightning - - Fix a bug that importer may ignore write rows error if open engine returns file exists error. [#848](https://github.com/pingcap/br/pull/848) - - Fix a bug that lightning generated ts may be to large or small that query may return incorrect result. [#850](https://github.com/pingcap/br/pull/850) - - Fix a bug that lightning unexpected exit may cause checkpoint file truncated to 0 sized. [#889](https://github.com/pingcap/br/pull/889) - - Fix a bug that chunk restore task may ignore context cancel error and causes data loss. [#874](https://github.com/pingcap/br/pull/874) + - Fix a bug that importer may ignore write rows error if open engine returns file exists error [#848](https://github.com/pingcap/br/pull/848) + - Fix a bug that lightning generated ts may be to large or small that query may return incorrect result [#850](https://github.com/pingcap/br/pull/850) + - Fix a bug that lightning unexpected exit may cause checkpoint file truncated to 0 sized [#889](https://github.com/pingcap/br/pull/889) + - Fix a bug that chunk restore task may ignore context cancel error and causes data loss [#874](https://github.com/pingcap/br/pull/874) From 38639d5854241b26a21aef445e756259cce921da Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Tue, 30 Mar 2021 19:58:52 +0800 Subject: [PATCH 11/15] refine language --- releases/release-4.0.12.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index fa038d0e66e36..7054d35b18f00 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -4,7 +4,7 @@ title: TiDB 4.0.12 Release Notes # TiDB 4.0.12 Release Notes -Release date: March 31, 2021 +Release date: April 2, 2021 TiDB version: 4.0.12 @@ -12,14 +12,14 @@ TiDB version: 4.0.12 + TiFlash - - Add tools to check exact status of `tiflash replica` for online rolling update + - Add tools to check the exact status of `tiflash replica` for online rolling update ## Improvements + TiDB - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) - - Add warning info for exprs that can not be pushed to storage layer for explain statement. [#23020](https://github.com/pingcap/tidb/pull/23020) + - Add warning information for expressions that cannot be pushed to the storage layer in `EXPLAIN` statement [#23020](https://github.com/pingcap/tidb/pull/23020) - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) From be7cbe844811497481e496e20da27cdf888c5d96 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 31 Mar 2021 18:27:51 +0800 Subject: [PATCH 12/15] refine language1 --- releases/release-4.0.12.md | 92 +++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 7054d35b18f00..001734e3b5b6c 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -19,78 +19,78 @@ TiDB version: 4.0.12 + TiDB - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) - - Add warning information for expressions that cannot be pushed to the storage layer in `EXPLAIN` statement [#23020](https://github.com/pingcap/tidb/pull/23020) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) - - Ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1). [#22929](https://github.com/pingcap/tidb/pull/22929) - - Add optimization-time and wait-TS-time into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) - - Support query partition_id from infoschema.partitions [#22489](https://github.com/pingcap/tidb/pull/22489) - - Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) - - Do not report error for prepared stmt execution if tidb_snapshot is set [#22641](https://github.com/pingcap/tidb/pull/22641) - - Record prepare execute fail as "Failed Query OPM" in monitor [#22672](https://github.com/pingcap/tidb/pull/22672) - - Add three format specifier for str_to_date expression [#22812](https://github.com/pingcap/tidb/pull/22812) - - Scattering truncated tables without pre-split option [#22872](https://github.com/pingcap/tidb/pull/22872) + - Add the warning information for expressions that cannot be pushed to the storage layer in `EXPLAIN` statement [#23020](https://github.com/pingcap/tidb/pull/23020) + - Migrate a part of the DDL package code from `Execute`/`ExecRestricted` to the safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) + - Migrate a part of the DDL package code from `Execute`/`ExecRestricted` to the safe API (1) [#22929](https://github.com/pingcap/tidb/pull/22929) + - Add `optimization-time` and `wait-TS-time` into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) + - Support querying `partition_id` from the `infoschema.partitions` table [#22489](https://github.com/pingcap/tidb/pull/22489) + - Add `last_plan_from_binding` to help the user know whether a SQL statement's execution plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) + - Scatter truncated tables without the `pre-split` option [#22872](https://github.com/pingcap/tidb/pull/22872) + - Add three format specifier for the `str_to_date` expression [#22812](https://github.com/pingcap/tidb/pull/22812) + - Record the `PREPARE` execution failure as `Failed Query OPM` in the metrics monitor [#22672](https://github.com/pingcap/tidb/pull/22672) + - Do not report errors for the `PREPARE` execution if `tidb_snapshot` is set [#22641](https://github.com/pingcap/tidb/pull/22641) + TiKV - * Pd_client: prevent a large number of reconnections in a short time [#9879](https://github.com/tikv/tikv/pull/9879) - * Optimize seek write for many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) - * Change the default value of `leader-transfer-max-log-lag` to 128 to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + - Prevent a large number of reconnections in a short period of time [#9879](https://github.com/tikv/tikv/pull/9879) + - Optimize the write operations in the scenarios of many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) + - Change the default value of `leader-transfer-max-log-lag` to `128` to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + PD - - Save to the region cache when pending-peers or down-peers change [#3471](https://github.com/pingcap/pd/pull/3471) - - Checker: prevent the regions in split-cache from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + - Update the Region cache only when `pending-peers` or `down-peers` change, which reduces the pressure of updating heartbeats [#3471](https://github.com/pingcap/pd/pull/3471) + - Prevent the Regions in `split-cache` from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + TiFlash - - Optimize configuration file and remove useless items - - Reduce the size of TiFlash binary file + - Optimize the configuration file and remove useless items + - Reduce the size of TiFlash binary files - Use an adaptive aggressive GC strategy to reduce memory usage + Tools + TiCDC - - Add double confirm when creating or resuming changefeed with start-ts or checkpoint-ts 1 day before current ts [#1497](https://github.com/pingcap/ticdc/pull/1497) + - Add a double confirmation when creating or resuming the changefeed with the `start-ts` or `checkpoint-ts` 1 day before the current timestamp [#1497](https://github.com/pingcap/ticdc/pull/1497) + Backup & Restore (BR) - - Log `HTTP_PROXY` and `HTTPS_PROXY`. [#827](https://github.com/pingcap/br/pull/827) - - Improve backup performance when there are many tables. [#745](https://github.com/pingcap/br/pull/745) - - Report error if service safe point check fails. [#826](https://github.com/pingcap/br/pull/826) - - Add cluster_version and br_version info in backupmeta [#803](https://github.com/pingcap/br/pull/803) - - Added retry for external storage errors. [#851](https://github.com/pingcap/br/pull/851) - - Reduce memory usage during backup. [#886](https://github.com/pingcap/br/pull/886) + - Log the `HTTP_PROXY` and `HTTPS_PROXY` environmental variables [#827](https://github.com/pingcap/br/pull/827) + - Improve backup performance when there are many tables [#745](https://github.com/pingcap/br/pull/745) + - Report errors if the service safe point check fails [#826](https://github.com/pingcap/br/pull/826) + - Add the `cluster_version` and `br_version` information in `backupmeta` [#803](https://github.com/pingcap/br/pull/803) + - Add retry for external storage errors to increase the success rate of backup [#851](https://github.com/pingcap/br/pull/851) + - Reduce memory usage during backup [#886](https://github.com/pingcap/br/pull/886) + TiDB Lightning - - Check TiDB cluster version before running TiDB-Lightning to avoid unexpected errors. [#787](https://github.com/pingcap/br/pull/787) - - Fail fast when lightning meets error in engine/chunk restore and do not retry context.Cancel error. [#867](https://github.com/pingcap/br/pull/867) - - Added configurations tikv-importer.engine-mem-cache-size and tikv-importer.local-writer-mem-cache-size to tune between memory usage and performance. [#866](https://github.com/pingcap/br/pull/866) - - Run batch split regions in parallel for Lightning local backend. [#868](https://github.com/pingcap/br/pull/868) - - When using Lightning to import from S3, Lightning no longer require s3:ListBucket permission on the entire bucket, only the data source prefix itself. [#919](https://github.com/pingcap/br/pull/919) - - When resuming from checkpoint, Lightning now keeps restoring the original engines instead of starting to process some random new ones. [#924](https://github.com/pingcap/br/pull/924) + - Check the TiDB cluster version before running TiDB Lightning to avoid unexpected errors [#787](https://github.com/pingcap/br/pull/787) + - Fail fast when TiDB Lightning meets the `cancel` error [#867](https://github.com/pingcap/br/pull/867) + - Add `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` configuration items to balance between memory usage and performance [#866](https://github.com/pingcap/br/pull/866) + - Run `batch split region` in parallel for TiDB Lightning's Local-backend to increase import speed [#868](https://github.com/pingcap/br/pull/868) + - When using TiDB Lightning to import data from a S3 storage, TiDB Lightning no longer requires the `s3:ListBucket` permission [#919](https://github.com/pingcap/br/pull/919) + - When resuming from a checkpoint, TiDB Lightning keeps using the original engine [#924](https://github.com/pingcap/br/pull/924) ## Bug Fixes + TiDB - - Fix get var expr when session var is hex literal [#23372](https://github.com/pingcap/tidb/pull/23372) - - Fix the bug that wrong collation is used when try fast path for enum or set [#23292](https://github.com/pingcap/tidb/pull/23292) - - Wrong result of nullif expr when used with is null expr [#23279](https://github.com/pingcap/tidb/pull/23279) - - Statistics: fix a case that auto-analyze is triggered outside its time range [#23219](https://github.com/pingcap/tidb/pull/23219) - - Executor: fix cast function will ignore the error for point get key construction [#23211](https://github.com/pingcap/tidb/pull/23211) - - Fixed a bug that prevented SPM from taking effect [#23209](https://github.com/pingcap/tidb/pull/23209) - - Fix wrong table filters for index merge plan [#23165](https://github.com/pingcap/tidb/pull/23165) - - Fix unexpected NotNullFlag in case when expr ret type [#23135](https://github.com/pingcap/tidb/pull/23135) - - Fix a bug that collation is not handle for text type [#23092](https://github.com/pingcap/tidb/pull/23092) - - Fix range partition prune bug for IN expr [#23074](https://github.com/pingcap/tidb/pull/23074) - - Fix request block forever when replace a tombstone store with the store has same IP addr [#23071](https://github.com/pingcap/tidb/pull/23071) - - Do not ajust int when it is null and compared year [#22844](https://github.com/pingcap/tidb/pull/22844) - - Fix load data lost connection error on tables with auto_random column [#22736](https://github.com/pingcap/tidb/pull/22736) - - Fix ddl hang over when it meets panic in cancelling path. [#23297](https://github.com/pingcap/tidb/pull/23297) - - Fix wrong key range of index scan when filter is comparing year column with NULL [#23104](https://github.com/pingcap/tidb/pull/23104) - - Fix create view success but failed when using it [#23083](https://github.com/pingcap/tidb/pull/23083) + - Fix the issue that the `get` variable expression goes wrong when the session variable is hexadecimal literals[#23372](https://github.com/pingcap/tidb/pull/23372) + - Fix the issue that wrong collation is used when creating the fast execution plan for the `Enum` or `Set` type [#23292](https://github.com/pingcap/tidb/pull/23292) + - Fix the possible wrong result of the `nullif` expression when it is used with `is-null` [#23279](https://github.com/pingcap/tidb/pull/23279) + - Fix the issue that the auto-analysis is triggered outside its time range [#23219](https://github.com/pingcap/tidb/pull/23219) + - Fix the issue that the `CAST` function might ignore errors for the `point get` plan [#23211](https://github.com/pingcap/tidb/pull/23211) + - Fix a bug that prevents SPM from taking effect when `CurrentDB` is empty [#23209](https://github.com/pingcap/tidb/pull/23209) + - Fix the issue of possible wrong table filters for the IndexMerge plan [#23165](https://github.com/pingcap/tidb/pull/23165) + - Fix the issue of unexpected `NotNullFlag` in the returning types of the `NULL` constant [#23135](https://github.com/pingcap/tidb/pull/23135) + - Fix a bug that collation might not be handled by the text type [#23092](https://github.com/pingcap/tidb/pull/23092) + - Fix the issue that the range partition might incorrectly handle the `IN` expression [#23074](https://github.com/pingcap/tidb/pull/23074) + - Fix the issue that after marking a TiKV store as tombstone, starting new TiKV stores with different StoreIDs with the same IP address and port will keep returning the `StoreNotMatch` error [#23071](https://github.com/pingcap/tidb/pull/23071) + - Do not adjust the `INT` type when it is `NULL` and compared with `YEAR` [#22844](https://github.com/pingcap/tidb/pull/22844) + - Fix the issue of lost connection when loading data on tables with the `auto_random` column [#22736](https://github.com/pingcap/tidb/pull/22736) + - Fix the issue of DDL hangover when the DDL operation meets panic in the cancelling path [#23297](https://github.com/pingcap/tidb/pull/23297) + - Fix the wrong key range of index scan when comparing the `YEAR` column with `NULL` [#23104](https://github.com/pingcap/tidb/pull/23104) + - Fix the issue that a successfully created view is failed to use [#23083](https://github.com/pingcap/tidb/pull/23083) + TiKV From 154e5dc6925ce6a55fa206615aa0edb235dc6fb0 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:50:35 +0800 Subject: [PATCH 13/15] refine language --- releases/release-4.0.12.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 001734e3b5b6c..06d8a4a6d17a5 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -94,40 +94,40 @@ TiDB version: 4.0.12 + TiKV - - Fix the issue that the IN expr(coprocessor) didn't handle unsigned/signed int properly [#9850](https://github.com/tikv/tikv/pull/9850) - - Fix the issue that the ingests operation cannot reentrant. [#9779](https://github.com/tikv/tikv/pull/9779) - - Fix the issue that the space missed when converting json to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) + - Fix the issue that the `IN` expression does not properly handle unsigned/signed integers [#9850](https://github.com/tikv/tikv/pull/9850) + - Fix the issue that the ingest operation is not re-entrant [#9779](https://github.com/tikv/tikv/pull/9779) + - Fix the issue that the space is missed when converting JSON to string in TiKV coprocessor [#9666](https://github.com/tikv/tikv/pull/9666) + PD - - Fix the bug that the isolation level is wrong when the store lacks label [#3474](https://github.com/pingcap/pd/pull/3474) + - Fix the bug that the isolation level is wrong when the store lacks the label [#3474](https://github.com/pingcap/pd/pull/3474) + TiFlash - - Fix an issue of incorrect results when the default value of `binary` type column contains leading or tailing zero bytes - - Fix the bug that TiFlash fail to sync schema if the name of database contains special characters - - Fix an issue of incorrect results when handling `IN` expression with decimal values - - Fix the bug that metrics about opened file count shown in Grafana is high - - Fix the bug that TiFlash does not support `Timestamp` literal + - Fix an issue of incorrect execution results when the default value of the `binary` type column contains leading or tailing zero bytes + - Fix the bug that TiFlash fails to synchronize schema if the name of the database contains special characters + - Fix an issue of incorrect results when handling the `IN` expression with decimal values + - Fix a bug that the metric for the opened file count shown in Grafana is high + - Fix a bug that TiFlash does not support the `Timestamp` literal - Fix the potential crash while handling `FROM_UNIXTIME` expression - Fix an issue of incorrect results when casting string as integer - - Fix a bug that `like` function may return wrong result + - Fix a bug that the `like` function might return wrong results + Tools + TiCDC - - Fix a resolved ts event disorder problems caused by concurrency [#1464](https://github.com/pingcap/ticdc/pull/1464) - - Fix a data loss bug when capture restarts due to network issue, and some table on it is scheduled at the same time [#1508](https://github.com/pingcap/ticdc/pull/1508) + - Fix a disorder issue of the `resolved ts` event [#1464](https://github.com/pingcap/ticdc/pull/1464) + - Fix a data loss issue caused by wrong table scheduling due to the network problem [#1508](https://github.com/pingcap/ticdc/pull/1508) + Backup & Restore (BR) - - Fix the bug that WalkDir for s3 storage returns nil if the target path is bucket name. [#773](https://github.com/pingcap/br/pull/773) - - Fixed a bug that caused, even BR started with TLS config, the pprof endpoints won't be served with TLS [#839](https://github.com/pingcap/br/pull/839) + - Fix a bug that `WalkDir` for the s3 storage returns `nil` if the target path is bucket name [#773](https://github.com/pingcap/br/pull/773) + - Fix a bug that the `status` port is not served with TLS [#839](https://github.com/pingcap/br/pull/839) + TiDB Lightning - - Fix a bug that importer may ignore write rows error if open engine returns file exists error [#848](https://github.com/pingcap/br/pull/848) - - Fix a bug that lightning generated ts may be to large or small that query may return incorrect result [#850](https://github.com/pingcap/br/pull/850) - - Fix a bug that lightning unexpected exit may cause checkpoint file truncated to 0 sized [#889](https://github.com/pingcap/br/pull/889) - - Fix a bug that chunk restore task may ignore context cancel error and causes data loss [#874](https://github.com/pingcap/br/pull/874) + - Fix the error that TiKV Importer might ignore that the file has already existed [#848](https://github.com/pingcap/br/pull/848) + - Fix a bug that the TiDB Lightning might use the wrong timestamp and read the wrong data [#850](https://github.com/pingcap/br/pull/850) + - Fix a bug that TiDB Lightning's unexpected exit might cause damaged checkpoint file [#889](https://github.com/pingcap/br/pull/889) + - Fix the issue of possible data error that occurs because the `cancel` error is ignored [#874](https://github.com/pingcap/br/pull/874) From 360bbac527f17d55709cf8a222f975b4043b4dca Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Thu, 1 Apr 2021 19:13:28 +0800 Subject: [PATCH 14/15] Apply suggestions from code review Co-authored-by: Grace Cai --- releases/release-4.0.12.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index 06d8a4a6d17a5..abce963647c41 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -12,21 +12,21 @@ TiDB version: 4.0.12 + TiFlash - - Add tools to check the exact status of `tiflash replica` for online rolling update + - Add tools to check the status of `tiflash replica` for online rolling updates ## Improvements + TiDB - - Refine explain info for batch cop [#23164](https://github.com/pingcap/tidb/pull/23164) - - Add the warning information for expressions that cannot be pushed to the storage layer in `EXPLAIN` statement [#23020](https://github.com/pingcap/tidb/pull/23020) + - Refine the output information of the `EXPLAIN` statement for the `batch cop` mode [#23164](https://github.com/pingcap/tidb/pull/23164) + - Add the warning information for expressions that cannot be pushed to the storage layer in the output of the `EXPLAIN` statement [#23020](https://github.com/pingcap/tidb/pull/23020) - Migrate a part of the DDL package code from `Execute`/`ExecRestricted` to the safe API (2) [#22935](https://github.com/pingcap/tidb/pull/22935) - Migrate a part of the DDL package code from `Execute`/`ExecRestricted` to the safe API (1) [#22929](https://github.com/pingcap/tidb/pull/22929) - Add `optimization-time` and `wait-TS-time` into the slow log [#22918](https://github.com/pingcap/tidb/pull/22918) - Support querying `partition_id` from the `infoschema.partitions` table [#22489](https://github.com/pingcap/tidb/pull/22489) - - Add `last_plan_from_binding` to help the user know whether a SQL statement's execution plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) + - Add `last_plan_from_binding` to help the users know whether a SQL statement's execution plan is matched with the hints in the binding [#21430](https://github.com/pingcap/tidb/pull/21430) - Scatter truncated tables without the `pre-split` option [#22872](https://github.com/pingcap/tidb/pull/22872) - - Add three format specifier for the `str_to_date` expression [#22812](https://github.com/pingcap/tidb/pull/22812) + - Add three format specifiers for the `str_to_date` expression [#22812](https://github.com/pingcap/tidb/pull/22812) - Record the `PREPARE` execution failure as `Failed Query OPM` in the metrics monitor [#22672](https://github.com/pingcap/tidb/pull/22672) - Do not report errors for the `PREPARE` execution if `tidb_snapshot` is set [#22641](https://github.com/pingcap/tidb/pull/22641) @@ -38,7 +38,7 @@ TiDB version: 4.0.12 + PD - - Update the Region cache only when `pending-peers` or `down-peers` change, which reduces the pressure of updating heartbeats [#3471](https://github.com/pingcap/pd/pull/3471) + - Update the Region cache only when `pending-peers` or `down-peers` changes, which reduces the pressure of updating heartbeats [#3471](https://github.com/pingcap/pd/pull/3471) - Prevent the Regions in `split-cache` from becoming the target of merge [#3459](https://github.com/pingcap/pd/pull/3459) + TiFlash @@ -51,12 +51,12 @@ TiDB version: 4.0.12 + TiCDC - - Add a double confirmation when creating or resuming the changefeed with the `start-ts` or `checkpoint-ts` 1 day before the current timestamp [#1497](https://github.com/pingcap/ticdc/pull/1497) + - Add a double confirmation when users create or resume the changefeed with the `start-ts` or `checkpoint-ts` 1 day before the current timestamp [#1497](https://github.com/pingcap/ticdc/pull/1497) + Backup & Restore (BR) - Log the `HTTP_PROXY` and `HTTPS_PROXY` environmental variables [#827](https://github.com/pingcap/br/pull/827) - - Improve backup performance when there are many tables [#745](https://github.com/pingcap/br/pull/745) + - Improve the backup performance when there are many tables [#745](https://github.com/pingcap/br/pull/745) - Report errors if the service safe point check fails [#826](https://github.com/pingcap/br/pull/826) - Add the `cluster_version` and `br_version` information in `backupmeta` [#803](https://github.com/pingcap/br/pull/803) - Add retry for external storage errors to increase the success rate of backup [#851](https://github.com/pingcap/br/pull/851) @@ -67,7 +67,7 @@ TiDB version: 4.0.12 - Check the TiDB cluster version before running TiDB Lightning to avoid unexpected errors [#787](https://github.com/pingcap/br/pull/787) - Fail fast when TiDB Lightning meets the `cancel` error [#867](https://github.com/pingcap/br/pull/867) - Add `tikv-importer.engine-mem-cache-size` and `tikv-importer.local-writer-mem-cache-size` configuration items to balance between memory usage and performance [#866](https://github.com/pingcap/br/pull/866) - - Run `batch split region` in parallel for TiDB Lightning's Local-backend to increase import speed [#868](https://github.com/pingcap/br/pull/868) + - Run `batch split region` in parallel for TiDB Lightning's Local-backend to increase the import speed [#868](https://github.com/pingcap/br/pull/868) - When using TiDB Lightning to import data from a S3 storage, TiDB Lightning no longer requires the `s3:ListBucket` permission [#919](https://github.com/pingcap/br/pull/919) - When resuming from a checkpoint, TiDB Lightning keeps using the original engine [#924](https://github.com/pingcap/br/pull/924) @@ -85,7 +85,7 @@ TiDB version: 4.0.12 - Fix the issue of unexpected `NotNullFlag` in the returning types of the `NULL` constant [#23135](https://github.com/pingcap/tidb/pull/23135) - Fix a bug that collation might not be handled by the text type [#23092](https://github.com/pingcap/tidb/pull/23092) - Fix the issue that the range partition might incorrectly handle the `IN` expression [#23074](https://github.com/pingcap/tidb/pull/23074) - - Fix the issue that after marking a TiKV store as tombstone, starting new TiKV stores with different StoreIDs with the same IP address and port will keep returning the `StoreNotMatch` error [#23071](https://github.com/pingcap/tidb/pull/23071) + - Fix the issue that after marking a TiKV store as tombstone, starting new TiKV stores with different StoreIDs with the same IP address and port keeps returning the `StoreNotMatch` error [#23071](https://github.com/pingcap/tidb/pull/23071) - Do not adjust the `INT` type when it is `NULL` and compared with `YEAR` [#22844](https://github.com/pingcap/tidb/pull/22844) - Fix the issue of lost connection when loading data on tables with the `auto_random` column [#22736](https://github.com/pingcap/tidb/pull/22736) - Fix the issue of DDL hangover when the DDL operation meets panic in the cancelling path [#23297](https://github.com/pingcap/tidb/pull/23297) @@ -100,17 +100,17 @@ TiDB version: 4.0.12 + PD - - Fix the bug that the isolation level is wrong when the store lacks the label [#3474](https://github.com/pingcap/pd/pull/3474) + - Fix a bug that the isolation level is wrong when the store lacks the label [#3474](https://github.com/pingcap/pd/pull/3474) + TiFlash - - Fix an issue of incorrect execution results when the default value of the `binary` type column contains leading or tailing zero bytes - - Fix the bug that TiFlash fails to synchronize schema if the name of the database contains special characters - - Fix an issue of incorrect results when handling the `IN` expression with decimal values + - Fix the issue of incorrect execution results when the default value of the `binary` type column contains leading or tailing zero bytes + - Fix a bug that TiFlash fails to synchronize schema if the name of the database contains special characters + - Fix the issue of incorrect results when handling the `IN` expression with decimal values - Fix a bug that the metric for the opened file count shown in Grafana is high - Fix a bug that TiFlash does not support the `Timestamp` literal - - Fix the potential crash while handling `FROM_UNIXTIME` expression - - Fix an issue of incorrect results when casting string as integer + - Fix the potential not responding issue while handling the `FROM_UNIXTIME` expression + - Fix the issue of incorrect results when casting string as integer - Fix a bug that the `like` function might return wrong results + Tools @@ -122,7 +122,7 @@ TiDB version: 4.0.12 + Backup & Restore (BR) - - Fix a bug that `WalkDir` for the s3 storage returns `nil` if the target path is bucket name [#773](https://github.com/pingcap/br/pull/773) + - Fix a bug that `WalkDir` for the s3 storage returns `nil` if the target path is bucket name [#733](https://github.com/pingcap/br/pull/733) - Fix a bug that the `status` port is not served with TLS [#839](https://github.com/pingcap/br/pull/839) + TiDB Lightning From 561ca993daa7f9d149a80e0060d5d483f677c7fc Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 2 Apr 2021 13:40:12 +0800 Subject: [PATCH 15/15] Update releases/release-4.0.12.md --- releases/release-4.0.12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-4.0.12.md b/releases/release-4.0.12.md index abce963647c41..1b4887fff2fe2 100644 --- a/releases/release-4.0.12.md +++ b/releases/release-4.0.12.md @@ -33,7 +33,7 @@ TiDB version: 4.0.12 + TiKV - Prevent a large number of reconnections in a short period of time [#9879](https://github.com/tikv/tikv/pull/9879) - - Optimize the write operations in the scenarios of many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) + - Optimize the write operations and Batch Get in the scenarios of many tombstones [#9729](https://github.com/tikv/tikv/pull/9729) - Change the default value of `leader-transfer-max-log-lag` to `128` to increase the success rate of leader transfer [#9605](https://github.com/tikv/tikv/pull/9605) + PD