From 135d1e7b78d1e67a9c5e38915ae88e64559e9bf0 Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 28 Nov 2022 15:15:43 +0800 Subject: [PATCH 01/28] add 6.1.3 release notes --- releases/release-6.1.3.md | 92 ++++++++++++++++++++++++++++++++++++ releases/release-6.3.0.md | 2 +- releases/release-notes.md | 1 + releases/release-timeline.md | 1 + 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 releases/release-6.1.3.md diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md new file mode 100644 index 000000000000..a3bba5a7b057 --- /dev/null +++ b/releases/release-6.1.3.md @@ -0,0 +1,92 @@ +--- +title: TiDB 6.1.3 Release Notes +--- + +# TiDB 6.1.3 Release Notes + +发版日期:2022 年 xx 月 xx 日 + +TiDB 版本:6.1.3 + +试用链接:[快速体验](https://docs.pingcap.com/zh/tidb/v6.1/quick-start-with-tidb) | [生产部署](https://docs.pingcap.com/zh/tidb/v6.1/production-deployment-using-tiup) | [下载离线包](https://cn.pingcap.com/product-community/?version=v6.1.3#version-list) + +## 提升改进 + +## Bug 修复 + ++ TiDB + + + + - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) + - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) + - Fix an issue that `get_lock()` cannot hold for more than 10 minutes. [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) + - Fix the issue that the auto increment column cannot be used with check constraint. [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) + - Fix broken log rotation of grpc [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) + - Delete TiFlash sync status from etcd when table is truncated or dropped [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) + - Fix the issue of arbitrary file read via data source name injection (CVE-2022-3023). [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) + + + + + + + + - (dup) 修复部分场景非唯一二级索引被误加悲观锁的问题 [#36235](https://github.com/pingcap/tidb/issues/36235) @[ekexium](https://github.com/ekexium) + +- PD + + + + - (dup) 修复 Stream 超时问题,提高 Leader 切换的速度 [#5207](https://github.com/tikv/pd/issues/5207) @[CabinfeverB](https://github.com/CabinfeverB) + ++ TiKV + + + + - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) + ++ TiFlash + + + + - (dup) 修复逻辑运算符在 UInt8 类型下查询结果出错的问题 [#6127](https://github.com/pingcap/tiflash/issues/6127) + - (dup) 修复 `CAST(value AS datetime)` 输入数据无法转成 `DATETIME` 时会导致 TiFlash sys CPU 异常高的问题 [#5097](https://github.com/pingcap/tiflash/issues/5097) @[xzhangxian1008](https://github.com/xzhangxian1008) + + + + - Fix too many column files under heavy write pressure. [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) + - Fix the problem that column files in delta layer cannot be compacted after restart tiflash [#6159] @[lidezhu](https://github.com/lidezhu) + ++ Tools + + + Backup & Restore (BR) + + + + - Fix a bug that: "Error Unsupported collation when new collation is enabled: 'utf8mb4_0900_ai_ci'" even if new_collation_enabled is false. [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + + + Dumpling + + + + + TiCDC + + + + - Fix an issue that causes data lost when pause and resume changefeed while executing DDL. [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + + + TiDB Binlog + + + + + TiDB Data Migration (DM) + + + + - Fix the issue that when `collation_compatible` is set to `"strict"`, DM might generate SQL with duplicated collations [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) + - Fix sometime DM task is stopped with error "Unknown placement policy" [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) + + + TiDB Lightning + + diff --git a/releases/release-6.3.0.md b/releases/release-6.3.0.md index 3e5fab452a8f..d053192ea46a 100644 --- a/releases/release-6.3.0.md +++ b/releases/release-6.3.0.md @@ -345,7 +345,7 @@ TiDB 版本:6.3.0-DMR - 修复 JSON 聚合函数不能使用单精度浮点数的问题 [#37287](https://github.com/pingcap/tidb/issues/37287) @[YangKeao](https://github.com/YangKeao) - 修复 `UNION` 运算符可能会非预期地返回空结果的问题 [#36903](https://github.com/pingcap/tidb/issues/36903) @[tiancaiamao](https://github.com/tiancaiamao) - 修复 `castRealAsTime` 表达式的结果和 MySQL 不兼容的问题 [#37462](https://github.com/pingcap/tidb/issues/37462) @[mengxin9014](https://github.com/mengxin9014) - - 修复悲观 DML 操作锁定非唯一索引键的问题 [#36235](https://github.com/pingcap/tidb/issues/36235) @[ekexium](https://github.com/ekexium) + - 修复悲观 DML 操作锁定非唯一索引键的问题 [#36235](https://github.com/pingcap/tidb/issues/) @[ekexium](https://github.com/ekexium) - 修复与自动提交 (auto-commit) 模式更改相关的事务提交行为 [#36581](https://github.com/pingcap/tidb/issues/36581) @[cfzjywxk](https://github.com/cfzjywxk) - 修复带 DML 算子的 `EXPLAIN ANALYZE` 语句可能在事务提交完成前返回结果的问题 [#37373](https://github.com/pingcap/tidb/issues/37373) @[cfzjywxk](https://github.com/cfzjywxk) - 修复在某些情况下 `UPDATE` 语句错误地消除了 projection 导致 `Can't find column` 报错的问题 [#37568](https://github.com/pingcap/tidb/issues/37568) @[AilinKid](https://github.com/AilinKid) diff --git a/releases/release-notes.md b/releases/release-notes.md index 1261dfb63023..bffc788a3aba 100644 --- a/releases/release-notes.md +++ b/releases/release-notes.md @@ -21,6 +21,7 @@ TiDB 历史版本发布声明如下: ## 6.1 +- [6.1.3](/releases/release-6.1.3.md): 2022-xx-xx - [6.1.2](/releases/release-6.1.2.md): 2022-10-24 - [6.1.1](/releases/release-6.1.1.md): 2022-09-01 - [6.1.0](/releases/release-6.1.0.md): 2022-06-13 diff --git a/releases/release-timeline.md b/releases/release-timeline.md index acf521db7303..4e6a1c2083bd 100644 --- a/releases/release-timeline.md +++ b/releases/release-timeline.md @@ -9,6 +9,7 @@ summary: 了解 TiDB 的版本发布时间线。 | 版本 | 发布日期 | | :--- | :--- | +| [6.1.3](/releases/release-6.1.3.md) | 2022-xx-xx | | [5.3.4](/releases/release-5.3.4.md) | 2022-11-24 | | [6.4.0-DMR](/releases/release-6.4.0.md) | 2022-11-17 | | [6.1.2](/releases/release-6.1.2.md) | 2022-10-24 | From 9eab04981fb4d136fa058a45efba57311d439c18 Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 28 Nov 2022 15:19:04 +0800 Subject: [PATCH 02/28] add --- TOC.md | 1 + releases/release-6.1.3.md | 2 +- releases/release-6.3.0.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TOC.md b/TOC.md index 96ede76f6f99..398ca0853eac 100644 --- a/TOC.md +++ b/TOC.md @@ -939,6 +939,7 @@ - v6.2 - [6.2.0-DMR](/releases/release-6.2.0.md) - v6.1 + - [6.1.3](/releases/release-6.1.3.md) - [6.1.2](/releases/release-6.1.2.md) - [6.1.1](/releases/release-6.1.1.md) - [6.1.0](/releases/release-6.1.0.md) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index a3bba5a7b057..9336d285119c 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -42,7 +42,7 @@ TiDB 版本:6.1.3 + TiKV - + - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) diff --git a/releases/release-6.3.0.md b/releases/release-6.3.0.md index d053192ea46a..3e5fab452a8f 100644 --- a/releases/release-6.3.0.md +++ b/releases/release-6.3.0.md @@ -345,7 +345,7 @@ TiDB 版本:6.3.0-DMR - 修复 JSON 聚合函数不能使用单精度浮点数的问题 [#37287](https://github.com/pingcap/tidb/issues/37287) @[YangKeao](https://github.com/YangKeao) - 修复 `UNION` 运算符可能会非预期地返回空结果的问题 [#36903](https://github.com/pingcap/tidb/issues/36903) @[tiancaiamao](https://github.com/tiancaiamao) - 修复 `castRealAsTime` 表达式的结果和 MySQL 不兼容的问题 [#37462](https://github.com/pingcap/tidb/issues/37462) @[mengxin9014](https://github.com/mengxin9014) - - 修复悲观 DML 操作锁定非唯一索引键的问题 [#36235](https://github.com/pingcap/tidb/issues/) @[ekexium](https://github.com/ekexium) + - 修复悲观 DML 操作锁定非唯一索引键的问题 [#36235](https://github.com/pingcap/tidb/issues/36235) @[ekexium](https://github.com/ekexium) - 修复与自动提交 (auto-commit) 模式更改相关的事务提交行为 [#36581](https://github.com/pingcap/tidb/issues/36581) @[cfzjywxk](https://github.com/cfzjywxk) - 修复带 DML 算子的 `EXPLAIN ANALYZE` 语句可能在事务提交完成前返回结果的问题 [#37373](https://github.com/pingcap/tidb/issues/37373) @[cfzjywxk](https://github.com/cfzjywxk) - 修复在某些情况下 `UPDATE` 语句错误地消除了 projection 导致 `Can't find column` 报错的问题 [#37568](https://github.com/pingcap/tidb/issues/37568) @[AilinKid](https://github.com/AilinKid) From 5020d65cb88c7df3a7faefc2e96a4b07f0e6ecdf Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 28 Nov 2022 15:30:36 +0800 Subject: [PATCH 03/28] Update release-6.1.3.md --- releases/release-6.1.3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 9336d285119c..2244ea7b0590 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -36,13 +36,13 @@ TiDB 版本:6.1.3 - PD - + - (dup) 修复 Stream 超时问题,提高 Leader 切换的速度 [#5207](https://github.com/tikv/pd/issues/5207) @[CabinfeverB](https://github.com/CabinfeverB) + TiKV - + - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) From 72e14fcd7b6c24abe53426ede702e26d3292eb4d Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 28 Nov 2022 16:34:48 +0800 Subject: [PATCH 04/28] correct owner --- releases/release-6.1.3.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 2244ea7b0590..f95b13203ed5 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -28,7 +28,7 @@ TiDB 版本:6.1.3 - + @@ -42,7 +42,7 @@ TiDB 版本:6.1.3 + TiKV - + - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) @@ -56,7 +56,7 @@ TiDB 版本:6.1.3 - Fix too many column files under heavy write pressure. [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - - Fix the problem that column files in delta layer cannot be compacted after restart tiflash [#6159] @[lidezhu](https://github.com/lidezhu) + - Fix the problem that column files in delta layer cannot be compacted after restart tiflash [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + Tools From ad42e74fbfe1a2f993c08eae496832d8447f82dd Mon Sep 17 00:00:00 2001 From: Flowyi Date: Wed, 30 Nov 2022 11:24:23 +0800 Subject: [PATCH 05/28] Update releases/release-6.1.3.md --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index f95b13203ed5..a761d294dd9d 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -55,7 +55,7 @@ TiDB 版本:6.1.3 - - Fix too many column files under heavy write pressure. [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) + - 修复高压力写可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - Fix the problem that column files in delta layer cannot be compacted after restart tiflash [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + Tools From a93b16de7560a8b849d26955fa0231b8b4fb85f6 Mon Sep 17 00:00:00 2001 From: Flowyi Date: Wed, 30 Nov 2022 11:24:30 +0800 Subject: [PATCH 06/28] Update releases/release-6.1.3.md --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index a761d294dd9d..fcd1f112d8c0 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -56,7 +56,7 @@ TiDB 版本:6.1.3 - 修复高压力写可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - - Fix the problem that column files in delta layer cannot be compacted after restart tiflash [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + - 修复 TiFlash 重启后 delta 层小文件无法合并的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + Tools From 6ee1296f6cc9502d4566552220bdb575ed6d4111 Mon Sep 17 00:00:00 2001 From: lance6716 Date: Wed, 30 Nov 2022 16:39:16 +0800 Subject: [PATCH 07/28] Update releases/release-6.1.3.md --- releases/release-6.1.3.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index fcd1f112d8c0..2c16f13dc15e 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -86,6 +86,8 @@ TiDB 版本:6.1.3 - Fix the issue that when `collation_compatible` is set to `"strict"`, DM might generate SQL with duplicated collations [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - Fix sometime DM task is stopped with error "Unknown placement policy" [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) + - Fix in some cases log contains many "COMMIT" related lines and relay log file may re-pull from upstream [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) + - Fix when DM worker exits a new worker may be scheduled too quickly and write duplicated data [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) + TiDB Lightning From 2f965f9fafb229dcf68f1616de0c258ea3534337 Mon Sep 17 00:00:00 2001 From: lance6716 Date: Wed, 30 Nov 2022 16:57:08 +0800 Subject: [PATCH 08/28] Update releases/release-6.1.3.md --- releases/release-6.1.3.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 2c16f13dc15e..8b8b119957e8 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -84,10 +84,10 @@ TiDB 版本:6.1.3 - - Fix the issue that when `collation_compatible` is set to `"strict"`, DM might generate SQL with duplicated collations [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - - Fix sometime DM task is stopped with error "Unknown placement policy" [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) - - Fix in some cases log contains many "COMMIT" related lines and relay log file may re-pull from upstream [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) - - Fix when DM worker exits a new worker may be scheduled too quickly and write duplicated data [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) + - 修复 `collation_compatible` 设置为 `"strict"` 时 DM 生成 SQL 时可能带有重复的 COLLATE 的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) + - 修复 DM 可能由于 "Unknown placement policy" 错误导致任务暂停的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) + - 修复在某些场景下日志中出现大量包含 "COMMIT" 行,并且 relay log 文件会从上游重新拉取的问题 [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) + - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) + TiDB Lightning From 3a9a9884dd391747f140dccc646d900887555e6d Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Wed, 30 Nov 2022 17:13:56 +0800 Subject: [PATCH 09/28] add PD and TiCDC improvements, and planner bug fixes Co-authored-by: ShuNing Co-authored-by: Yuanjia Zhang --- releases/release-6.1.3.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 8b8b119957e8..e07dfc0d67c2 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -11,7 +11,16 @@ TiDB 版本:6.1.3 试用链接:[快速体验](https://docs.pingcap.com/zh/tidb/v6.1/quick-start-with-tidb) | [生产部署](https://docs.pingcap.com/zh/tidb/v6.1/production-deployment-using-tiup) | [下载离线包](https://cn.pingcap.com/product-community/?version=v6.1.3#version-list) ## 提升改进 +- PD + + - 优化锁粒度,提升高并发下心跳的处理能力 [#5586](https://github.com/tikv/pd/issues/5586) @[rleungx](https://github.com/rleungx) + +- Tools + + - TiCDC + - 修改同步任务 safe-mode 和拆分大事务默认值提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) + - 提升 Kafka 相关协议的编码性能. [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) ## Bug 修复 + TiDB @@ -28,7 +37,8 @@ TiDB 版本:6.1.3 - + - 修复 Projection 算子错误下推表达式过 Join 算子的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) + - 修复统计信息后台任务搜集分区表统计信息时可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) From 934d72427a8bff851cc9ae162b4b029d152c845d Mon Sep 17 00:00:00 2001 From: lance6716 Date: Thu, 1 Dec 2022 09:44:54 +0800 Subject: [PATCH 10/28] Update releases/release-6.1.3.md --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index e07dfc0d67c2..1b9351d05fca 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -96,7 +96,7 @@ TiDB 版本:6.1.3 - 修复 `collation_compatible` 设置为 `"strict"` 时 DM 生成 SQL 时可能带有重复的 COLLATE 的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - 修复 DM 可能由于 "Unknown placement policy" 错误导致任务暂停的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) - - 修复在某些场景下日志中出现大量包含 "COMMIT" 行,并且 relay log 文件会从上游重新拉取的问题 [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) + - 修复在某些场景下 relay log 文件会从上游重新拉取的问题 [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) + TiDB Lightning From 99c3bb70eee0015250ce99b3b51a28d81fd24550 Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Thu, 1 Dec 2022 14:27:06 +0800 Subject: [PATCH 11/28] Apply suggestions from code review Co-authored-by: Weizhen Wang Co-authored-by: ruoxi Co-authored-by: WangLe1321 --- releases/release-6.1.3.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 1b9351d05fca..698d90e7b511 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -29,16 +29,17 @@ TiDB 版本:6.1.3 - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - - Fix an issue that `get_lock()` cannot hold for more than 10 minutes. [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) - - Fix the issue that the auto increment column cannot be used with check constraint. [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) - - Fix broken log rotation of grpc [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) - - Delete TiFlash sync status from etcd when table is truncated or dropped [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) - - Fix the issue of arbitrary file read via data source name injection (CVE-2022-3023). [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) + - 修复了 `get_lock()` 不能持续 10 分钟的问题. [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) + - 修复了自增列不能和检查约束一起使用的问题 [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) + - 修复了损坏的 grpc log rotation [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) + - 当表被截断或删除时从 etcd 中删除 TiFlash 同步状态 [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) + - 修复通过数据源名称注入读取任意文件的问题 (CVE-2022-3023). [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) - 修复 Projection 算子错误下推表达式过 Join 算子的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - 修复统计信息后台任务搜集分区表统计信息时可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) + - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL Mode 下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) @@ -74,7 +75,7 @@ TiDB 版本:6.1.3 - - Fix a bug that: "Error Unsupported collation when new collation is enabled: 'utf8mb4_0900_ai_ci'" even if new_collation_enabled is false. [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + - 修复数据库中使用旧的 collation 时恢复失败的问题. [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + Dumpling From d400ca3436fa197a4aebf8a0b4f0cdea408ad3f1 Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Thu, 1 Dec 2022 14:39:42 +0800 Subject: [PATCH 12/28] Update release-6.1.3.md --- releases/release-6.1.3.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 698d90e7b511..de2beffe30df 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -11,21 +11,27 @@ TiDB 版本:6.1.3 试用链接:[快速体验](https://docs.pingcap.com/zh/tidb/v6.1/quick-start-with-tidb) | [生产部署](https://docs.pingcap.com/zh/tidb/v6.1/production-deployment-using-tiup) | [下载离线包](https://cn.pingcap.com/product-community/?version=v6.1.3#version-list) ## 提升改进 + - PD + + - 优化锁粒度,提升高并发下心跳的处理能力 [#5586](https://github.com/tikv/pd/issues/5586) @[rleungx](https://github.com/rleungx) - Tools - TiCDC + + - 修改同步任务 safe-mode 和拆分大事务默认值提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) - 提升 Kafka 相关协议的编码性能. [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) + ## Bug 修复 + TiDB - + - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) @@ -37,9 +43,12 @@ TiDB 版本:6.1.3 + - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL Mode 下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) + + + - 修复 Projection 算子错误下推表达式过 Join 算子的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - 修复统计信息后台任务搜集分区表统计信息时可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) - - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL Mode 下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) @@ -75,7 +84,7 @@ TiDB 版本:6.1.3 - - 修复数据库中使用旧的 collation 时恢复失败的问题. [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + - 修复数据库中使用旧的 collation 时恢复失败的问题 [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + Dumpling @@ -85,7 +94,7 @@ TiDB 版本:6.1.3 - - Fix an issue that causes data lost when pause and resume changefeed while executing DDL. [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + - 修复在执行 DDL 时,恢复暂停的 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + TiDB Binlog @@ -95,7 +104,7 @@ TiDB 版本:6.1.3 - - 修复 `collation_compatible` 设置为 `"strict"` 时 DM 生成 SQL 时可能带有重复的 COLLATE 的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) + - (dup) 修复当 `collation_compatible` 设置为 `"strict"` 时,DM 可能生成有重复排序规则的 SQL 语句的问题[#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - 修复 DM 可能由于 "Unknown placement policy" 错误导致任务暂停的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) - 修复在某些场景下 relay log 文件会从上游重新拉取的问题 [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) From 9f1c289bdfa0ae502e08837ed342c24cacaacd4e Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Thu, 1 Dec 2022 15:07:59 +0800 Subject: [PATCH 13/28] Update release-6.1.3.md --- releases/release-6.1.3.md | 1 - 1 file changed, 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index de2beffe30df..6ead82e1b430 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -47,7 +47,6 @@ TiDB 版本:6.1.3 - - 修复 Projection 算子错误下推表达式过 Join 算子的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - 修复统计信息后台任务搜集分区表统计信息时可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) From 9cb8c0c32f17da7b1790bf4858ad165900d73796 Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Thu, 1 Dec 2022 16:16:40 +0800 Subject: [PATCH 14/28] Apply suggestions from code review --- releases/release-6.1.3.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 6ead82e1b430..f1d79138224d 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -35,11 +35,11 @@ TiDB 版本:6.1.3 - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - - 修复了 `get_lock()` 不能持续 10 分钟的问题. [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) - - 修复了自增列不能和检查约束一起使用的问题 [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) - - 修复了损坏的 grpc log rotation [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) - - 当表被截断或删除时从 etcd 中删除 TiFlash 同步状态 [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) - - 修复通过数据源名称注入读取任意文件的问题 (CVE-2022-3023). [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) + - 修复 `get_lock()` 无法持续 10 分钟以上的问题 [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) + - 修复自增列不能和检查约束一起使用的问题 [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) + - 修复了 gRPC 日志导出到错误文件的问题 [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) + - 修复当表被截断或删除时 TiFlash 同步状态未从 etcd 中删除的问题 [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) + - 修复通过数据源名称注入可读取任意文件的问题 (CVE-2022-3023) [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) @@ -47,7 +47,7 @@ TiDB 版本:6.1.3 - - 修复统计信息后台任务搜集分区表统计信息时可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) + - 修复后台统计信息任务可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) From 49b107752a3d96fa5d60eef5596b107d856a00e8 Mon Sep 17 00:00:00 2001 From: Aolin Date: Thu, 1 Dec 2022 23:20:39 +0800 Subject: [PATCH 15/28] bug fix: tools Signed-off-by: Aolin --- releases/release-6.1.3.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index f1d79138224d..4b9362e2a1a8 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -81,9 +81,9 @@ TiDB 版本:6.1.3 + Backup & Restore (BR) - + - - 修复数据库中使用旧的 collation 时恢复失败的问题 [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + - 修复数据库或数据表中使用旧的排序规则框架时数据恢复失败的问题 [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) + Dumpling @@ -91,9 +91,9 @@ TiDB 版本:6.1.3 + TiCDC - + - - 修复在执行 DDL 时,恢复暂停的 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + - 修复在执行 DDL 时,恢复 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + TiDB Binlog @@ -101,12 +101,12 @@ TiDB 版本:6.1.3 + TiDB Data Migration (DM) - + - - (dup) 修复当 `collation_compatible` 设置为 `"strict"` 时,DM 可能生成有重复排序规则的 SQL 语句的问题[#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - - 修复 DM 可能由于 "Unknown placement policy" 错误导致任务暂停的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) - - 修复在某些场景下 relay log 文件会从上游重新拉取的问题 [#7719](https://github.com/pingcap/tiflow/pull/7719) @[liumengya94](https://github.com/liumengya94) - - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7745](https://github.com/pingcap/tiflow/pull/7745) @[GMHDBJD](https://github.com/GMHDBJD) + - (dup) 修复当 `collation_compatible` 设置为 `"strict"` 时,DM 可能生成有重复排序规则的 SQL 语句的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) + - 修复 DM 可能由于 `Unknown placement policy` 错误导致任务停止的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) + - 修复在某些场景下 relay log 文件会从上游重新拉取的问题 [#7525](https://github.com/pingcap/tiflow/issues/7525) @[liumengya94](https://github.com/liumengya94) + - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7658](https://github.com/pingcap/tiflow/issues/7658) @[GMHDBJD](https://github.com/GMHDBJD) + TiDB Lightning From dd0b18abe589c40add4df771dda015390b7c837c Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 2 Dec 2022 11:12:46 +0800 Subject: [PATCH 16/28] Apply suggestions from code review --- releases/release-6.1.3.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 4b9362e2a1a8..0c59ec6f95f8 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -16,7 +16,7 @@ TiDB 版本:6.1.3 - - 优化锁粒度,提升高并发下心跳的处理能力 [#5586](https://github.com/tikv/pd/issues/5586) @[rleungx](https://github.com/rleungx) + - 优化锁的粒度以减少锁争用,提升高并发下心跳的处理能力 [#5586](https://github.com/tikv/pd/issues/5586) @[rleungx](https://github.com/rleungx) - Tools @@ -24,8 +24,8 @@ TiDB 版本:6.1.3 - - 修改同步任务 safe-mode 和拆分大事务默认值提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) - - 提升 Kafka 相关协议的编码性能. [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) + - 开启大事务拆分,默认关闭同步任务的安全模式以提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) + - 提升 Kafka 相关协议的编码性能 [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) ## Bug 修复 @@ -75,7 +75,7 @@ TiDB 版本:6.1.3 - 修复高压力写可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - - 修复 TiFlash 重启后 delta 层小文件无法合并的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + - 修复 TiFlash 重启后 delta 层的小文件无法合并 (compact) 的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + Tools From 95b4b5ed5cd91056022d4a994f6b4e6041bcc829 Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Fri, 2 Dec 2022 11:38:13 +0800 Subject: [PATCH 17/28] Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 0c59ec6f95f8..4e31317925c5 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -35,7 +35,7 @@ TiDB 版本:6.1.3 - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - - 修复 `get_lock()` 无法持续 10 分钟以上的问题 [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) + - 修复使用 `get_lock()` 获得的锁无法持续 10 分钟以上的问题 [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) - 修复自增列不能和检查约束一起使用的问题 [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) - 修复了 gRPC 日志导出到错误文件的问题 [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) - 修复当表被截断或删除时 TiFlash 同步状态未从 etcd 中删除的问题 [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) From c8f3e7d311d034f5b1d423e17b59d4b7782ea91f Mon Sep 17 00:00:00 2001 From: Aolin Date: Fri, 2 Dec 2022 11:47:54 +0800 Subject: [PATCH 18/28] Apply suggestions from code review Co-authored-by: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 4e31317925c5..8077153bfd9e 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -93,7 +93,7 @@ TiDB 版本:6.1.3 - - 修复在执行 DDL 时,恢复 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + - 修复在执行 DDL 后,暂停然后恢复 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) + TiDB Binlog From 1c53c69b69fe59f708defc91160ac8a5c5cd9ed1 Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Fri, 2 Dec 2022 13:33:17 +0800 Subject: [PATCH 19/28] add go info --- releases/release-6.1.3.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 8077153bfd9e..c40453690e26 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -27,6 +27,10 @@ TiDB 版本:6.1.3 - 开启大事务拆分,默认关闭同步任务的安全模式以提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) - 提升 Kafka 相关协议的编码性能 [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) +- 其他 + + 为了提升 TiDB 性能,TiDB 的 Go 编译器版本从 go1.x.x 升级到了 go1.19。 - - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL Mode 下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) + - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL 模式下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) From 6b9a5266c27f713e2076b546df9f8187276ae38b Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Fri, 2 Dec 2022 15:28:06 +0800 Subject: [PATCH 21/28] format --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index fc0060bd4342..586396e733a4 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -29,7 +29,7 @@ TiDB 版本:6.1.3 - 其他 - 为了提升 TiDB 性能,TiDB 的 Go 编译器版本从 go1.x.x 升级到了 go1.19。 - - 开启大事务拆分,默认关闭同步任务的安全模式以提升性能 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) - - 提升 Kafka 相关协议的编码性能 [#7540](https://github.com/pingcap/tiflow/issues/7540), [#7532](https://github.com/pingcap/tiflow/issues/7532), [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) + - 默认情况下关闭 safeMode 并开启大事务拆分功能,提升同步的稳定性 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) + - 提升 Kafka 相关协议的编码性能 [#7540](https://github.com/pingcap/tiflow/issues/7540) [#7532](https://github.com/pingcap/tiflow/issues/7532) [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) - 其他 - - 为了提升 TiDB 性能,TiDB 的 Go 编译器版本从 go1.x.x 升级到了 go1.19。 - - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) + - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) + TiFlash @@ -78,7 +78,7 @@ TiDB 版本:6.1.3 - - 修复高压力写可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) + - 修复高压力写入可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - 修复 TiFlash 重启后 delta 层的小文件无法合并 (compact) 的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) + Tools From ccd956f7e875b09f7f99ef6922f73dd4ae82deb5 Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 5 Dec 2022 11:01:43 +0800 Subject: [PATCH 23/28] add oom link and finalize the RN --- releases/release-6.1.3.md | 60 ++++++------------------------------ releases/release-notes.md | 2 +- releases/release-timeline.md | 2 +- 3 files changed, 11 insertions(+), 53 deletions(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 60084723b8d3..bf0620dc2017 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -4,7 +4,7 @@ title: TiDB 6.1.3 Release Notes # TiDB 6.1.3 Release Notes -发版日期:2022 年 xx 月 xx 日 +发版日期:2022 年 12 月 5 日 TiDB 版本:6.1.3 @@ -14,16 +14,12 @@ TiDB 版本:6.1.3 - PD - - - 优化锁的粒度以减少锁争用,提升高并发下心跳的处理能力 [#5586](https://github.com/tikv/pd/issues/5586) @[rleungx](https://github.com/rleungx) - Tools - TiCDC - - - 默认情况下关闭 safeMode 并开启大事务拆分功能,提升同步的稳定性 [#7505](https://github.com/pingcap/tiflow/issues/7505) @[asddongmen](https://github.com/asddongmen) - 提升 Kafka 相关协议的编码性能 [#7540](https://github.com/pingcap/tiflow/issues/7540) [#7532](https://github.com/pingcap/tiflow/issues/7532) [#7543](https://github.com/pingcap/tiflow/issues/7543) @[sdojjy](https://github.com/sdojjy) @[3AceShowHand](https://github.com/3AceShowHand) @@ -35,49 +31,29 @@ TiDB 版本:6.1.3 + TiDB - - - - (dup) 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) - - (dup) 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) + - 修复 `mysql.tables_priv` 表中 `grantor` 字段缺失的问题 [#38293](https://github.com/pingcap/tidb/issues/38293) @[CbcWestwolf](https://github.com/CbcWestwolf) + - 修复错误下推的条件被 Join Reorder 丢弃后导致查询结果错误的问题 [#38736](https://github.com/pingcap/tidb/issues/38736) @[winoros](https://github.com/winoros) - 修复使用 `get_lock()` 获得的锁无法持续 10 分钟以上的问题 [#38706](https://github.com/pingcap/tidb/issues/38706) @[tangenta](https://github.com/tangenta) - 修复自增列不能和检查约束一起使用的问题 [#38894](https://github.com/pingcap/tidb/issues/38894) @[YangKeao](https://github.com/YangKeao) - 修复了 gRPC 日志导出到错误文件的问题 [#38941](https://github.com/pingcap/tidb/issues/38941) @[xhebox](https://github.com/xhebox) - 修复当表被截断或删除时 TiFlash 同步状态未从 etcd 中删除的问题 [#37168](https://github.com/pingcap/tidb/issues/37168) @[CalvinNeo](https://github.com/CalvinNeo) - 修复通过数据源名称注入可读取任意文件的问题 (CVE-2022-3023) [#38541](https://github.com/pingcap/tidb/issues/38541) @[lance6716](https://github.com/lance6716) - - - - 修复函数 `str_to_date` 在 `NO_ZERO_DATE` SQL 模式下返回结果不正确的问题 [#39146](https://github.com/pingcap/tidb/issues/39146) @[mengxin9014](https://github.com/mengxin9014) - - - - 修复后台统计信息任务可能崩溃的问题 [#35421](https://github.com/pingcap/tidb/issues/35421) @[lilinghai](https://github.com/lilinghai) - - - - - (dup) 修复部分场景非唯一二级索引被误加悲观锁的问题 [#36235](https://github.com/pingcap/tidb/issues/36235) @[ekexium](https://github.com/ekexium) + - 修复部分场景非唯一二级索引被误加悲观锁的问题 [#36235](https://github.com/pingcap/tidb/issues/36235) @[ekexium](https://github.com/ekexium) - PD - - - - (dup) 修复 Stream 超时问题,提高 Leader 切换的速度 [#5207](https://github.com/tikv/pd/issues/5207) @[CabinfeverB](https://github.com/CabinfeverB) + - 修复 Stream 超时问题,提高 Leader 切换的速度 [#5207](https://github.com/tikv/pd/issues/5207) @[CabinfeverB](https://github.com/CabinfeverB) + TiKV - - - - (dup) 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) + - 修复获取 Snapshot 时 Lease 过期引发的异常竞争问题 [#13553](https://github.com/tikv/tikv/issues/13553) @[SpadeA-Tang](https://github.com/SpadeA-Tang) + TiFlash - - - - (dup) 修复逻辑运算符在 UInt8 类型下查询结果出错的问题 [#6127](https://github.com/pingcap/tiflash/issues/6127) - - (dup) 修复 `CAST(value AS datetime)` 输入数据无法转成 `DATETIME` 时会导致 TiFlash sys CPU 异常高的问题 [#5097](https://github.com/pingcap/tiflash/issues/5097) @[xzhangxian1008](https://github.com/xzhangxian1008) - - - + - 修复逻辑运算符在 UInt8 类型下查询结果出错的问题 [#6127](https://github.com/pingcap/tiflash/issues/6127) + - 修复 `CAST(value AS datetime)` 输入数据无法转成 `DATETIME` 时会导致 TiFlash sys CPU 异常高的问题 [#5097](https://github.com/pingcap/tiflash/issues/5097) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复高压力写入可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - 修复 TiFlash 重启后 delta 层的小文件无法合并 (compact) 的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) @@ -85,33 +61,15 @@ TiDB 版本:6.1.3 + Backup & Restore (BR) - - - 修复数据库或数据表中使用旧的排序规则框架时数据恢复失败的问题 [#39150](https://github.com/pingcap/tidb/issues/39150) @[MoCuishle28](https://github.com/MoCuishle28) - + Dumpling - - - + TiCDC - - - 修复在执行 DDL 后,暂停然后恢复 changefeed 会导致数据丢失的问题 [#7682](https://github.com/pingcap/tiflow/issues/7682) @[asddongmen](https://github.com/asddongmen) - + TiDB Binlog - - - + TiDB Data Migration (DM) - - - - (dup) 修复当 `collation_compatible` 设置为 `"strict"` 时,DM 可能生成有重复排序规则的 SQL 语句的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) + - 修复当 `collation_compatible` 设置为 `"strict"` 时,DM 可能生成有重复排序规则的 SQL 语句的问题 [#6832](https://github.com/pingcap/tiflow/issues/6832) @[lance6716](https://github.com/lance6716) - 修复 DM 可能由于 `Unknown placement policy` 错误导致任务停止的问题 [#7493](https://github.com/pingcap/tiflow/issues/7493) @[lance6716](https://github.com/lance6716) - 修复在某些场景下 relay log 文件会从上游重新拉取的问题 [#7525](https://github.com/pingcap/tiflow/issues/7525) @[liumengya94](https://github.com/liumengya94) - 修复当 DM worker 即将退出时新 worker 调度过快导致数据被重复同步的问题 [#7658](https://github.com/pingcap/tiflow/issues/7658) @[GMHDBJD](https://github.com/GMHDBJD) - - + TiDB Lightning - - diff --git a/releases/release-notes.md b/releases/release-notes.md index bffc788a3aba..aa3fb6226c0d 100644 --- a/releases/release-notes.md +++ b/releases/release-notes.md @@ -21,7 +21,7 @@ TiDB 历史版本发布声明如下: ## 6.1 -- [6.1.3](/releases/release-6.1.3.md): 2022-xx-xx +- [6.1.3](/releases/release-6.1.3.md): 2022-12-05 - [6.1.2](/releases/release-6.1.2.md): 2022-10-24 - [6.1.1](/releases/release-6.1.1.md): 2022-09-01 - [6.1.0](/releases/release-6.1.0.md): 2022-06-13 diff --git a/releases/release-timeline.md b/releases/release-timeline.md index 4e6a1c2083bd..b86e5b14648e 100644 --- a/releases/release-timeline.md +++ b/releases/release-timeline.md @@ -9,7 +9,7 @@ summary: 了解 TiDB 的版本发布时间线。 | 版本 | 发布日期 | | :--- | :--- | -| [6.1.3](/releases/release-6.1.3.md) | 2022-xx-xx | +| [6.1.3](/releases/release-6.1.3.md) | 2022-12-05 | | [5.3.4](/releases/release-5.3.4.md) | 2022-11-24 | | [6.4.0-DMR](/releases/release-6.4.0.md) | 2022-11-17 | | [6.1.2](/releases/release-6.1.2.md) | 2022-10-24 | From 3b93b39ed367e75dd6c04f80ba8c348a3058d54f Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 5 Dec 2022 11:09:35 +0800 Subject: [PATCH 24/28] add a link to go 1.19 --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index bf0620dc2017..fc594cf57ad7 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -25,7 +25,7 @@ TiDB 版本:6.1.3 - 其他 - - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 go1.19。通过设置环境变量 `GOMEMLIMIT`,可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 + - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/blog/go1.19)。通过设置环境变量 `GOMEMLIMIT`,可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 ## Bug 修复 From 534d2b17ba0e1541c402a71dbf92bd81ebe67a0e Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 5 Dec 2022 11:17:46 +0800 Subject: [PATCH 25/28] add a link to go 1.19 RN --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index fc594cf57ad7..600418aa230a 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -25,7 +25,7 @@ TiDB 版本:6.1.3 - 其他 - - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/blog/go1.19)。通过设置环境变量 `GOMEMLIMIT`,可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 + - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/doc/go1.19)。通过设置环境变量 `GOMEMLIMIT`,可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 ## Bug 修复 From 7aacd5435c9e2288a5f0c740945685eda248753e Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Mon, 5 Dec 2022 11:23:19 +0800 Subject: [PATCH 26/28] Apply suggestions from code review Co-authored-by: Aolin --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 600418aa230a..d5000a6f61ab 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -25,7 +25,7 @@ TiDB 版本:6.1.3 - 其他 - - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/doc/go1.19)。通过设置环境变量 `GOMEMLIMIT`,可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 + - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/doc/go1.19)。通过设置 Go 环境变量 [`GOMEMLIMIT`](https://pkg.go.dev/runtime@go1.19#hdr-Environment_Variables),可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 ## Bug 修复 From 5e9819a295650c6256441c72b297c0a068351dd5 Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Mon, 5 Dec 2022 14:04:11 +0800 Subject: [PATCH 27/28] Apply suggestions from code review Co-authored-by: ruoxi --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index d5000a6f61ab..7fb20e76ef80 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -52,7 +52,7 @@ TiDB 版本:6.1.3 + TiFlash - - 修复逻辑运算符在 UInt8 类型下查询结果出错的问题 [#6127](https://github.com/pingcap/tiflash/issues/6127) + - 修复逻辑运算符在 `UInt8` 类型下查询结果出错的问题 [#6127](https://github.com/pingcap/tiflash/issues/6127) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复 `CAST(value AS datetime)` 输入数据无法转成 `DATETIME` 时会导致 TiFlash sys CPU 异常高的问题 [#5097](https://github.com/pingcap/tiflash/issues/5097) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复高压力写入可能产生太多 delta 层小文件的问题 [#6361](https://github.com/pingcap/tiflash/issues/6361) @[lidezhu](https://github.com/lidezhu) - 修复 TiFlash 重启后 delta 层的小文件无法合并 (compact) 的问题 [#6159](https://github.com/pingcap/tiflash/issues/6159) @[lidezhu](https://github.com/lidezhu) From 36672dbcff1c1ac50b42fef3a2390ce4beb65ace Mon Sep 17 00:00:00 2001 From: shichun-0415 Date: Mon, 5 Dec 2022 14:34:33 +0800 Subject: [PATCH 28/28] ci --- releases/release-6.1.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-6.1.3.md b/releases/release-6.1.3.md index 7fb20e76ef80..17f031827eb4 100644 --- a/releases/release-6.1.3.md +++ b/releases/release-6.1.3.md @@ -25,7 +25,7 @@ TiDB 版本:6.1.3 - 其他 - - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/doc/go1.19)。通过设置 Go 环境变量 [`GOMEMLIMIT`](https://pkg.go.dev/runtime@go1.19#hdr-Environment_Variables),可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 + - 为了提升 TiDB 稳定性,缓解 OOM 问题,TiDB 的 Go 编译器版本从 go1.18 升级到了 [go1.19](https://go.dev/doc/go1.19)。通过设置 Go 环境变量 [`GOMEMLIMIT`](https://pkg.go.dev/runtime@go1.19#hdr-Environment_Variables),可以将 TiDB 的内存使用维持在预定的水位线以下,缓解大部分 OOM 问题。更多信息,详见[设置环境变量 `GOMEMLIMIT` 缓解 OOM 问题](/configure-memory-usage.md#设置环境变量-gomemlimit-缓解-oom-问题)。 ## Bug 修复