From aba762e6f9b960901f1ddfa583748bd468a3bdde Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 15 Oct 2025 11:38:01 +0800 Subject: [PATCH 01/64] Create release-8.5.4.md --- releases/release-8.5.4.md | 141 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 releases/release-8.5.4.md diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md new file mode 100644 index 000000000000..bc2e6e174d5c --- /dev/null +++ b/releases/release-8.5.4.md @@ -0,0 +1,141 @@ +--- +title: TiDB 8.5.4 Release Notes +summary: 了解 TiDB 8.5.4 版本的兼容性变更、改进提升,以及错误修复。 +--- + +# TiDB 8.5.4 Release Notes + +发版日期:2025 年 x 月 x 日 + +TiDB 版本:8.5.4 + +试用链接:[快速体验](https://docs.pingcap.com/zh/tidb/v8.5/quick-start-with-tidb) | [生产部署](https://docs.pingcap.com/zh/tidb/v8.5/production-deployment-using-tiup) | [下载离线包](https://cn.pingcap.com/product-community/?version=v8.5.4#version-list) + +## 兼容性变更 + +- note [#issue](https://github.com/pingcap/${repo-name}/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) +- (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) + +## 改进提升 + ++ TiDB + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 改进提升> TiDB - 新增数据导入期间 Region 分裂与数据 ingest 的流控接口 [#61553](https://github.com/pingcap/tidb/issues/61553) @[tangenta](https://github.com/tangenta) + ++ TiKV + + - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 改进提升> TiKV - 优化 Raftstore 中 `CompactedEvent` 的处理逻辑,将其移至 `split-check` worker 中执行,减少对 Raftstore 主线程的阻塞 [#18532](https://github.com/tikv/tikv/issues/18532) @[LykxSassinator](https://github.com/LykxSassinator) + - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + ++ PD + + - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 改进提升> PD - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) + ++ TiFlash + + - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + ++ Tools + + + Backup & Restore (BR) + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 改进提升> Tools> Backup & Restore (BR) - TiKV 的 Download API 在下载备份文件时,支持过滤掉某段时间范围内的数据,以避免恢复时导入过旧或过新的数据版本 [#18399](https://github.com/tikv/tikv/issues/18399) @[3pointer](https://github.com/3pointer) + + + TiCDC + + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiDB Data Migration (DM) + + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiDB Lightning + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + Dumpling + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiUP + + - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + +## 错误修复 + ++ TiDB + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.5.md > 错误修复> TiDB - 修复 Grafana 中 **Stats Healthy Distribution** 面板的数据可能错误的问题 [#57176](https://github.com/pingcap/tidb/issues/57176) @[hawkingrei](https://github.com/hawkingrei) + - (dup): release-7.5.7.md > 错误修复> TiDB - 修复对统计信息的异常处理不当导致后台任务超时的时候,内存内的统计信息被误删除的问题 [#57901](https://github.com/pingcap/tidb/issues/57901) @[hawkingrei](https://github.com/hawkingrei) + - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) + ++ TiKV + + - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + ++ PD + + - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + ++ TiFlash + + - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + ++ Tools + + + Backup & Restore (BR) + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复日志备份上传大量数据至 Azure Blob Storage 时速度缓慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) + - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复当指定了 `-f` 来过滤表时,BR 未检查集群内是否已存在对应表的问题 [#61592](https://github.com/pingcap/tidb/issues/61592) @[RidRisR](https://github.com/RidRisR) + - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复 PITR 无法恢复大于 3072 字节的索引的问题 [#58430](https://github.com/pingcap/tidb/issues/58430) @[YuJuncen](https://github.com/YuJuncen) + + + TiCDC + + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiDB Data Migration (DM) + + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiDB Lightning + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-7.5.7.md > 错误修复> Tools> TiDB Lightning - 修复 TiDB Lightning 向 TiKV 发起的 RPC 请求超时后返回 `context deadline exceeded` 的问题 [#61326](https://github.com/pingcap/tidb/issues/61326) @[OliverS929](https://github.com/OliverS929) + + + Dumpling + + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + + + TiUP + + - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + +## Other dup notes + +- (dup): release-5.4.0.md > 提升改进> PD - TiDB Dashboard 更新至 v2021.12.31 [#4257](https://github.com/tikv/pd/issues/4257) \ No newline at end of file From a5c23fd55967e66887141c48e326a6e5445b152d Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 15 Oct 2025 14:15:08 +0800 Subject: [PATCH 02/64] Update release-8.5.4.md --- releases/release-8.5.4.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index bc2e6e174d5c..149823dbd047 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -22,6 +22,7 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - (dup): release-7.5.7.md > 改进提升> TiDB - 新增数据导入期间 Region 分裂与数据 ingest 的流控接口 [#61553](https://github.com/pingcap/tidb/issues/61553) @[tangenta](https://github.com/tangenta) + TiKV @@ -81,9 +82,9 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.5.md > 错误修复> TiDB - 修复 Grafana 中 **Stats Healthy Distribution** 面板的数据可能错误的问题 [#57176](https://github.com/pingcap/tidb/issues/57176) @[hawkingrei](https://github.com/hawkingrei) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复对统计信息的异常处理不当导致后台任务超时的时候,内存内的统计信息被误删除的问题 [#57901](https://github.com/pingcap/tidb/issues/57901) @[hawkingrei](https://github.com/hawkingrei) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) + - (dup): release-7.5.5.md > 错误修复> TiDB - 修复 Grafana 中 **Stats Healthy Distribution** 面板的数据可能错误的问题 [#57176](https://github.com/pingcap/tidb/issues/57176) @[hawkingrei](https://github.com/hawkingrei) + TiKV @@ -94,6 +95,7 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-9.0.0.md(beta.1) > 错误修复> PD - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + TiFlash @@ -108,7 +110,6 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复日志备份上传大量数据至 Azure Blob Storage 时速度缓慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复当指定了 `-f` 来过滤表时,BR 未检查集群内是否已存在对应表的问题 [#61592](https://github.com/pingcap/tidb/issues/61592) @[RidRisR](https://github.com/RidRisR) - - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复 PITR 无法恢复大于 3072 字节的索引的问题 [#58430](https://github.com/pingcap/tidb/issues/58430) @[YuJuncen](https://github.com/YuJuncen) + TiCDC @@ -138,4 +139,6 @@ TiDB 版本:8.5.4 ## Other dup notes -- (dup): release-5.4.0.md > 提升改进> PD - TiDB Dashboard 更新至 v2021.12.31 [#4257](https://github.com/tikv/pd/issues/4257) \ No newline at end of file +- (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) +- (dup): release-5.4.0.md > 提升改进> PD - TiDB Dashboard 更新至 v2021.12.31 [#4257](https://github.com/tikv/pd/issues/4257) +- (dup): release-9.0.0.md(beta.1) > # 性能 * 在几十万甚至上百万用户数的场景下,创建用户、修改用户信息的性能提升了 77 倍 [#55563](https://github.com/pingcap/tidb/issues/55563) @[tiancaiamao](https://github.com/tiancaiamao) \ No newline at end of file From a8b60d9aecdfe8e2efa9d1c0ecdbe1a7e3cb2218 Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 15 Oct 2025 14:48:06 +0800 Subject: [PATCH 03/64] removed issues already merged in v8.5.3 --- releases/release-8.5.4.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 149823dbd047..daade3686c09 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -22,14 +22,13 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - - (dup): release-7.5.7.md > 改进提升> TiDB - 新增数据导入期间 Region 分裂与数据 ingest 的流控接口 [#61553](https://github.com/pingcap/tidb/issues/61553) @[tangenta](https://github.com/tangenta) + TiKV - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 改进提升> TiKV - 优化 Raftstore 中 `CompactedEvent` 的处理逻辑,将其移至 `split-check` worker 中执行,减少对 Raftstore 主线程的阻塞 [#18532](https://github.com/tikv/tikv/issues/18532) @[LykxSassinator](https://github.com/LykxSassinator) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + PD @@ -49,7 +48,6 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 改进提升> Tools> Backup & Restore (BR) - TiKV 的 Download API 在下载备份文件时,支持过滤掉某段时间范围内的数据,以避免恢复时导入过旧或过新的数据版本 [#18399](https://github.com/tikv/tikv/issues/18399) @[3pointer](https://github.com/3pointer) + TiCDC @@ -82,9 +80,7 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 错误修复> TiDB - 修复对统计信息的异常处理不当导致后台任务超时的时候,内存内的统计信息被误删除的问题 [#57901](https://github.com/pingcap/tidb/issues/57901) @[hawkingrei](https://github.com/hawkingrei) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) - - (dup): release-7.5.5.md > 错误修复> TiDB - 修复 Grafana 中 **Stats Healthy Distribution** 面板的数据可能错误的问题 [#57176](https://github.com/pingcap/tidb/issues/57176) @[hawkingrei](https://github.com/hawkingrei) + TiKV @@ -108,8 +104,6 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复日志备份上传大量数据至 Azure Blob Storage 时速度缓慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - - (dup): release-7.5.7.md > 错误修复> Tools> Backup & Restore (BR) - 修复当指定了 `-f` 来过滤表时,BR 未检查集群内是否已存在对应表的问题 [#61592](https://github.com/pingcap/tidb/issues/61592) @[RidRisR](https://github.com/RidRisR) + TiCDC @@ -125,7 +119,6 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 错误修复> Tools> TiDB Lightning - 修复 TiDB Lightning 向 TiKV 发起的 RPC 请求超时后返回 `context deadline exceeded` 的问题 [#61326](https://github.com/pingcap/tidb/issues/61326) @[OliverS929](https://github.com/OliverS929) + Dumpling @@ -135,10 +128,4 @@ TiDB 版本:8.5.4 + TiUP - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - -## Other dup notes - -- (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) -- (dup): release-5.4.0.md > 提升改进> PD - TiDB Dashboard 更新至 v2021.12.31 [#4257](https://github.com/tikv/pd/issues/4257) -- (dup): release-9.0.0.md(beta.1) > # 性能 * 在几十万甚至上百万用户数的场景下,创建用户、修改用户信息的性能提升了 77 倍 [#55563](https://github.com/pingcap/tidb/issues/55563) @[tiancaiamao](https://github.com/tiancaiamao) \ No newline at end of file + - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) \ No newline at end of file From d6276c25ba3c0a86fe724ab163c31b196941f0fc Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 15 Oct 2025 15:26:45 +0800 Subject: [PATCH 04/64] Update release-8.5.4.md --- releases/release-8.5.4.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index daade3686c09..8b4fc268a3f0 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -16,6 +16,9 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/${repo-name}/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) + - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 + - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 + ## 改进提升 + TiDB From 7834050e83660433f01ba99821cc0cde30032b8b Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 16 Oct 2025 16:08:48 +0800 Subject: [PATCH 05/64] add tiflash improvements and bug bixes Co-authored-by: JaySon --- releases/release-8.5.4.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 8b4fc268a3f0..672547be4ea9 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -44,6 +44,10 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 跳过不必要读取的数据,优化 TableScan 的读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) + - 优化 TiFlash 在宽且稀疏的表上 TableScan 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 优化当集群存在大量表时,添加向量索引时的 TiFlash CPU 开销 [#10357](https://github.com/pingcap/tiflash/issues/10357) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) + - 减少不必要的处理 raft commands 时的日志 [#10467](https://github.com/pingcap/tiflash/issues/10467) @[JaySon-Huang](https://github.com/JaySon-Huang) + Tools @@ -81,7 +85,7 @@ TiDB 版本:8.5.4 + TiDB - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 修复当 `tidb_isolation_read_engines` 设置为 "tiflash" 时,`use index` hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) @@ -100,6 +104,10 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) + - 修复 TiFlash 消耗超过预期的 RU 的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) + - 修复存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复存算分离架构下,TiFlash 遇到与 S3 网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) + Tools From be131558e198035d57d62b5d47f750c1da615629 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 20 Oct 2025 09:51:08 +0800 Subject: [PATCH 06/64] add transaction bug fixes Co-authored-by: ekexium --- releases/release-8.5.4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 672547be4ea9..8248970d1897 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -87,6 +87,7 @@ TiDB 版本:8.5.4 - 修复当 `tidb_isolation_read_engines` 设置为 "tiflash" 时,`use index` hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 修复了 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题. [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) + TiKV From 44361ff0fb3b6898e42bedf716666d1a0ad3382d Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 20 Oct 2025 09:55:36 +0800 Subject: [PATCH 07/64] add bug fixes for execution Co-authored-by: Liqi Geng --- releases/release-8.5.4.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 8248970d1897..34b76e7e354c 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -89,6 +89,9 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - 修复了 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题. [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) + - 修复预处理语句中处理 decimal 与 mysql 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + - 修复 `truncate` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) + - 修复当 `Out Of Quota For Local Temporary Space` 触发时,spill 文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) + TiKV @@ -109,6 +112,7 @@ TiDB 版本:8.5.4 - 修复 TiFlash 消耗超过预期的 RU 的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - 修复存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) - 修复存算分离架构下,TiFlash 遇到与 S3 网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复了当参数为 `decimal` 类型时,`floor` 和 `ceil` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tidb/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + Tools From 7e54b2f21597bca3e1887685fe1e8a972c525c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A5=E5=89=91?= <1045931706@qq.com> Date: Mon, 20 Oct 2025 11:22:39 +0800 Subject: [PATCH 08/64] pd dc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 童剑 <1045931706@qq.com> --- releases/release-8.5.4.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 34b76e7e354c..7fa43ec2fc20 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -36,9 +36,9 @@ TiDB 版本:8.5.4 + PD - - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-7.5.7.md > 改进提升> PD - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) + - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) + - 升级 golang 版本到 1.23.12, 同时更新相关依赖 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) + - 支持按照表级别维度打散 region 数量,使其按照 scatter-role 和 engine 维度进行均衡 #[8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) + TiFlash @@ -100,9 +100,14 @@ TiDB 版本:8.5.4 + PD - - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/tikv/pd/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - (dup): release-9.0.0.md(beta.1) > 错误修复> PD - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + - 修复 /config 和 /members API 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) + - 修复 tso proxy 错误处理 #[9188](https://github.com/tikv/pd/issues/9188) @[Tema](https://github.com/Tema) + - 修复在关闭 bucket 上报后, split bucket 依然生效 #[9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) + - 修复 resource manager 错误分配 token 问题 #[9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) + - 修复 pd leader 变更后, placement rule 不生效问题 #[9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) + - 修复 backoff 初始化错误问题 #[9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + - 修复 ttl 配置不生效问题 #[9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash From 79de7e22aff9fda41cf597a06b5756c8d9fb63f9 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:10:46 +0800 Subject: [PATCH 09/64] add cdc bug fixes Co-authored-by: hongyunyan <649330952@qq.com> --- releases/release-8.5.4.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 7fa43ec2fc20..26d4a03facb0 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -128,7 +128,13 @@ TiDB 版本:8.5.4 + TiCDC - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 修复在配置包含虚拟列的 column 类型 partition 分发器时可能导致的 panic 问题 [#12241](https://github.com/pingcap/tiflow/issues/12241) @[wk989898](https://github.com/wk989898) + - 修复在关闭 ddl puller 时可能引发的 panic 问题 [#12244](https://github.com/pingcap/tiflow/issues/12244) @[wk989898](https://github.com/wk989898) + - 支持在 filter 中通过设置 `ignore-txn-start-ts` 来过滤不支持的 DDL 类型 [#12286](https://github.com/pingcap/tiflow/issues/12286) @[asddongmen](https://github.com/asddongmen) + - 修复使用 Azure 下游时可能引起的卡住问题 [#12277] (https://github.com/pingcap/tiflow/issues/12277) @[zurakutsia](https://github.com/zurakutsia) + - 修复 `drop foreign key` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) + - 修复订阅 region 时遇到回滚和预写条目导致的 panic 问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) + - 修复 TiKV 断言错误导致的 panic 问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + TiDB Data Migration (DM) From c1d5e3e30ac97089100a386c28c5b8d825631cda Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:11:47 +0800 Subject: [PATCH 10/64] add TiKV improvements Co-authored-by: glorv --- releases/release-8.5.4.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 26d4a03facb0..e7bdd278bd39 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -30,8 +30,13 @@ TiDB 版本:8.5.4 + TiKV - - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 将部分 BR 模块的可自动恢复的错误的日志级别从ERROR 调整为 WARN [#18493]([https://github.com/tikv/tikv/issues/18493](https://github.com/tikv/tikv/issues/18493))[)](https://github.com/tikv/tikv/issues/18493)) @[YuJuncen]([https://github.com/YuJuncen](https://github.com/YuJuncen))[)](https://github.com/YuJuncen)) + - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率。[#18695]([https://github.com/tikv/tikv/issues/18695](https://github.com/tikv/tikv/issues/18695))[)](https://github.com/tikv/tikv/issues/18695)) @[v01dstar]([https://github.com/v01dstar](https://github.com/v01dstar))[)](https://github.com/v01dstar)) + - 基于 GC safe point 和 Rocksdb 的统计信息计算 MVCC 的冗余读,提升 compaction 的效率和准确性。[#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) + - 将部分 TiKV 的错误日志从 ERROR 级别调整为 WARN 级别,避免产生过多不必要的告警。[#18745]([https://github.com/tikv/tikv/issues/18745](https://github.com/tikv/tikv/issues/18745))[)](https://github.com/tikv/tikv/issues/18745)) @[exit-code-1]([https://github.com/exit-code-1](https://github.com/exit-code-1))[)](https://github.com/exit-code-1)) + - 将 Region MVCC 的 GC 处理逻辑改由 GC worker 线程执行,统一 GC 的处理逻辑。 [#18727]([https://github.com/tikv/tikv/issues/18727](https://github.com/tikv/tikv/issues/18727))[)](https://github.com/tikv/tikv/issues/18727)) @[v01dstar]([https://github.com/v01dstar](https://github.com/v01dstar))[)](https://github.com/v01dstar)) + - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免 gRPC 线程数量太小产生的性能瓶颈。 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) + - 优化 rocksdb 获取 snapshot 的性能,大幅降低在 rocksdb SST 文件数据很多场景的读写延迟。[#18743]([https://github.com/tikv/tikv/issues/18743](https://github.com/tikv/tikv/issues/18743))[)](https://github.com/tikv/tikv/issues/18743)) @[Connor1996]([https://github.com/Connor1996](https://github.com/Connor1996))[)](https://github.com/Connor1996)) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + PD From 19224e19d4b2d1c6bc2d571713404deef8c3c992 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:12:42 +0800 Subject: [PATCH 11/64] remove the placeholder TiKV notes as there is no bug fix in v8.5.4 for TiKV according to glorv Co-authored-by: glorv --- releases/release-8.5.4.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index e7bdd278bd39..e8387a9938e9 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -100,8 +100,6 @@ TiDB 版本:8.5.4 + TiKV - - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/tikv/tikv/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + PD From 65f4058147545182cfa1a4821f85c85b8e0c0cb0 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:14:11 +0800 Subject: [PATCH 12/64] add planner bug fixes Co-authored-by: Elsa <111482174+elsa0520@users.noreply.github.com> --- releases/release-8.5.4.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index e8387a9938e9..95bf4b9eebba 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -97,7 +97,15 @@ TiDB 版本:8.5.4 - 修复预处理语句中处理 decimal 与 mysql 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) - 修复 `truncate` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复当 `Out Of Quota For Local Temporary Space` 触发时,spill 文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) - +- 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) +- 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) +- 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) +- 修复了 join order 变更顺序后可能导致的无法规划问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) +- 修复了 set_var hint 使用 binding 后有可能无法恢复回原始 variable 设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) +- 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617]([https://github.com/pingcap/tidb/issues/62617](https://github.com/pingcap/tidb/issues/62617))[)](https://github.com/pingcap/tidb/issues/62617)) @[AilinKid]([https://github.com/AilinKid](https://github.com/AilinKid))[)](https://github.com/AilinKid)) +- 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) +- 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) +- 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) + TiKV From fb19fbabac77d886fb495a2d434da86b3a0535b4 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:15:32 +0800 Subject: [PATCH 13/64] add planner improvements Co-authored-by: Elsa <111482174+elsa0520@users.noreply.github.com> --- releases/release-8.5.4.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 95bf4b9eebba..212416e3f6ae 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -27,6 +27,14 @@ TiDB 版本:8.5.4 - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) +- 微调了参数 tidb_opt_ordering_index_selectivity_ratio 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) +- 新增配置项 tidb_opt_enable_semi_join_rewrite 去控制 exists 子查询是否需要被改写 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) +- 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948]([https://github.com/pingcap/tidb/issues/57948](https://github.com/pingcap/tidb/issues/57948))[)](https://github.com/pingcap/tidb/issues/57948)) @[terry1purcell]([https://github.com/terry1purcell](https://github.com/terry1purcell))[)](https://github.com/terry1purcell)) +- 优化了 NDV 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) +- 微调了 limit offset 出现在 Index Join 查询中的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) +- 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) +- 优化了 Merge join 计算 cost 可能存在遗漏 filter 的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) +- 优化了在统计信息收集不及时情况下,越界估算的策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) + TiKV From b251d648d3f596600fba1764f42f03d712783785 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 21 Oct 2025 16:16:43 +0800 Subject: [PATCH 14/64] add improvements and bug fixes for DDL\Lightning\Dumpling\DM\binlog Co-authored-by: Jiaqiang Huang --- releases/release-8.5.4.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 212416e3f6ae..e605de75ede5 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -76,8 +76,7 @@ TiDB 版本:8.5.4 + TiDB Data Migration (DM) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - 修复获取上游 `GTID_MODE` 时大小写不兼容的问题 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) + TiDB Lightning @@ -105,6 +104,17 @@ TiDB 版本:8.5.4 - 修复预处理语句中处理 decimal 与 mysql 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) - 修复 `truncate` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复当 `Out Of Quota For Local Temporary Space` 触发时,spill 文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) + - 修复查询`INFORMATION_SCHEMA`表使用正则表达式过滤结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) + - 修复从 PD 获取 timestamp 异常时没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) + - 修复modify column时,owner TiDB和非ownerTiDB查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) + - 修复动态调参后 `ADMIN ALTER DDL JOBS`显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) + - 修复通过事务加索引时GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复过大的 SST 文件 ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) + - 修复当 CPU 和 memory 比例为 1:2 时阻塞 global sort 的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) + - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) + + - 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) From ac0380085c881ea4206c53f06d29edcf110d1b41 Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 22 Oct 2025 11:21:20 +0800 Subject: [PATCH 15/64] adjust format and add br bug fixes --- releases/release-8.5.4.md | 56 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index e605de75ede5..ce53bb853603 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -13,28 +13,26 @@ TiDB 版本:8.5.4 ## 兼容性变更 -- note [#issue](https://github.com/pingcap/${repo-name}/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) - - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 - - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 +- 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 + +- 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 ## 改进提升 + TiDB - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) -- 微调了参数 tidb_opt_ordering_index_selectivity_ratio 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) -- 新增配置项 tidb_opt_enable_semi_join_rewrite 去控制 exists 子查询是否需要被改写 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) -- 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948]([https://github.com/pingcap/tidb/issues/57948](https://github.com/pingcap/tidb/issues/57948))[)](https://github.com/pingcap/tidb/issues/57948)) @[terry1purcell]([https://github.com/terry1purcell](https://github.com/terry1purcell))[)](https://github.com/terry1purcell)) -- 优化了 NDV 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) -- 微调了 limit offset 出现在 Index Join 查询中的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) -- 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) -- 优化了 Merge join 计算 cost 可能存在遗漏 filter 的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) -- 优化了在统计信息收集不及时情况下,越界估算的策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) + - 微调了参数 tidb_opt_ordering_index_selectivity_ratio 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) + - 新增配置项 tidb_opt_enable_semi_join_rewrite 去控制 exists 子查询是否需要被改写 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) + - 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948]([https://github.com/pingcap/tidb/issues/57948](https://github.com/pingcap/tidb/issues/57948))[)](https://github.com/pingcap/tidb/issues/57948)) @[terry1purcell]([https://github.com/terry1purcell](https://github.com/terry1purcell))[)](https://github.com/terry1purcell)) + - 优化了 NDV 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) + - 微调了 limit offset 出现在 Index Join 查询中的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) + - 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) + - 优化了 Merge join 计算 cost 可能存在遗漏 filter 的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + - 优化了在统计信息收集不及时情况下,越界估算的策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) + TiKV @@ -55,8 +53,6 @@ TiDB 版本:8.5.4 + TiFlash - - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - 跳过不必要读取的数据,优化 TableScan 的读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) - 优化 TiFlash 在宽且稀疏的表上 TableScan 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) - 优化当集群存在大量表时,添加向量索引时的 TiFlash CPU 开销 [#10357](https://github.com/pingcap/tiflash/issues/10357) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) @@ -113,17 +109,16 @@ TiDB 版本:8.5.4 - 修复当 CPU 和 memory 比例为 1:2 时阻塞 global sort 的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) + - 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) + - 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) + - 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) + - 修复了 join order 变更顺序后可能导致的无法规划问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) + - 修复了 set_var hint 使用 binding 后有可能无法恢复回原始 variable 设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) + - 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617]([https://github.com/pingcap/tidb/issues/62617](https://github.com/pingcap/tidb/issues/62617))[)](https://github.com/pingcap/tidb/issues/62617)) @[AilinKid]([https://github.com/AilinKid](https://github.com/AilinKid))[)](https://github.com/AilinKid)) + - 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) + - 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) + - 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) - -- 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) -- 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) -- 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) -- 修复了 join order 变更顺序后可能导致的无法规划问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) -- 修复了 set_var hint 使用 binding 后有可能无法恢复回原始 variable 设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) -- 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617]([https://github.com/pingcap/tidb/issues/62617](https://github.com/pingcap/tidb/issues/62617))[)](https://github.com/pingcap/tidb/issues/62617)) @[AilinKid]([https://github.com/AilinKid](https://github.com/AilinKid))[)](https://github.com/AilinKid)) -- 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) -- 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) -- 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) + TiKV @@ -140,8 +135,6 @@ TiDB 版本:8.5.4 + TiFlash - - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiflash/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - 修复 TiFlash 消耗超过预期的 RU 的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - 修复存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) @@ -152,8 +145,13 @@ TiDB 版本:8.5.4 + Backup & Restore (BR) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) + - Fix the issue where Zstd compression did not take effect in log backup, resulting in uncompressed output. [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) + - Fixed a bug that may cause flush operation slow in azure blob storage. [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) + - Fixed a bug that may cause `log truncate` panic when failed to delete file. [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) + - Fixed a bug that may cause `stats_meta` be zero when checksumming disabled. [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) + - Reduced chance of BR restore failure from S3-compatible storage when the S3 server limits bandwidth through traffic shaping. [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) + - Fix the issue that the log backup observer loses observation of a region. [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) + - Fixed a bug that may cause `restore point` fail when there are some special sized table schemas [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + TiCDC From 7d652a0428f3a52332e439a543f70c1752b3f72f Mon Sep 17 00:00:00 2001 From: qiancai Date: Wed, 22 Oct 2025 11:24:06 +0800 Subject: [PATCH 16/64] remove empty notes placeholder --- releases/release-8.5.4.md | 52 ++------------------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index ce53bb853603..e3ed388e63ee 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -60,35 +60,10 @@ TiDB 版本:8.5.4 + Tools - + Backup & Restore (BR) - - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + TiCDC - - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - + TiDB Data Migration (DM) - 修复获取上游 `GTID_MODE` 时大小写不兼容的问题 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) - + TiDB Lightning - - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + Dumpling - - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + TiUP - - - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - ## 错误修复 + TiDB @@ -119,9 +94,6 @@ TiDB 版本:8.5.4 - 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) -+ TiKV - - + PD - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) @@ -131,7 +103,7 @@ TiDB 版本:8.5.4 - 修复 resource manager 错误分配 token 问题 #[9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) - 修复 pd leader 变更后, placement rule 不生效问题 #[9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) - 修复 backoff 初始化错误问题 #[9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - - 修复 ttl 配置不生效问题 #[9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + - 修复 ttl 配置不生效问题 #[9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash @@ -162,24 +134,4 @@ TiDB 版本:8.5.4 - 修复 `drop foreign key` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) - 修复订阅 region 时遇到回滚和预写条目导致的 panic 问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) - 修复 TiKV 断言错误导致的 panic 问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + TiDB Data Migration (DM) - - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + TiDB Lightning - - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + Dumpling - - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - + TiUP - - - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - - note [#issue](https://github.com/pingcap/tiup/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) \ No newline at end of file + - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) \ No newline at end of file From daabc077a47dd96f73419c727c1ac5c9cc596df9 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 22 Oct 2025 11:32:04 +0800 Subject: [PATCH 17/64] remove tikv #18743 (as this issue appears twice) --- releases/release-8.5.4.md | 1 - 1 file changed, 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index e3ed388e63ee..24415657fd23 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -42,7 +42,6 @@ TiDB 版本:8.5.4 - 将部分 TiKV 的错误日志从 ERROR 级别调整为 WARN 级别,避免产生过多不必要的告警。[#18745]([https://github.com/tikv/tikv/issues/18745](https://github.com/tikv/tikv/issues/18745))[)](https://github.com/tikv/tikv/issues/18745)) @[exit-code-1]([https://github.com/exit-code-1](https://github.com/exit-code-1))[)](https://github.com/exit-code-1)) - 将 Region MVCC 的 GC 处理逻辑改由 GC worker 线程执行,统一 GC 的处理逻辑。 [#18727]([https://github.com/tikv/tikv/issues/18727](https://github.com/tikv/tikv/issues/18727))[)](https://github.com/tikv/tikv/issues/18727)) @[v01dstar]([https://github.com/v01dstar](https://github.com/v01dstar))[)](https://github.com/v01dstar)) - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免 gRPC 线程数量太小产生的性能瓶颈。 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) - - 优化 rocksdb 获取 snapshot 的性能,大幅降低在 rocksdb SST 文件数据很多场景的读写延迟。[#18743]([https://github.com/tikv/tikv/issues/18743](https://github.com/tikv/tikv/issues/18743))[)](https://github.com/tikv/tikv/issues/18743)) @[Connor1996]([https://github.com/Connor1996](https://github.com/Connor1996))[)](https://github.com/Connor1996)) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + PD From 4d90861a8d7163d577571ba15316db12f61978e4 Mon Sep 17 00:00:00 2001 From: qiancai Date: Fri, 24 Oct 2025 10:06:34 +0800 Subject: [PATCH 18/64] fix format issues on links --- releases/release-8.5.4.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 24415657fd23..fcc10dd410e9 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -27,7 +27,7 @@ TiDB 版本:8.5.4 - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 微调了参数 tidb_opt_ordering_index_selectivity_ratio 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) - 新增配置项 tidb_opt_enable_semi_join_rewrite 去控制 exists 子查询是否需要被改写 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - - 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948]([https://github.com/pingcap/tidb/issues/57948](https://github.com/pingcap/tidb/issues/57948))[)](https://github.com/pingcap/tidb/issues/57948)) @[terry1purcell]([https://github.com/terry1purcell](https://github.com/terry1purcell))[)](https://github.com/terry1purcell)) + - 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) - 优化了 NDV 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) - 微调了 limit offset 出现在 Index Join 查询中的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) - 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) @@ -36,11 +36,11 @@ TiDB 版本:8.5.4 + TiKV - - 将部分 BR 模块的可自动恢复的错误的日志级别从ERROR 调整为 WARN [#18493]([https://github.com/tikv/tikv/issues/18493](https://github.com/tikv/tikv/issues/18493))[)](https://github.com/tikv/tikv/issues/18493)) @[YuJuncen]([https://github.com/YuJuncen](https://github.com/YuJuncen))[)](https://github.com/YuJuncen)) - - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率。[#18695]([https://github.com/tikv/tikv/issues/18695](https://github.com/tikv/tikv/issues/18695))[)](https://github.com/tikv/tikv/issues/18695)) @[v01dstar]([https://github.com/v01dstar](https://github.com/v01dstar))[)](https://github.com/v01dstar)) + - 将部分 BR 模块的可自动恢复的错误的日志级别从ERROR 调整为 WARN [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) + - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率。[#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) - 基于 GC safe point 和 Rocksdb 的统计信息计算 MVCC 的冗余读,提升 compaction 的效率和准确性。[#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) - - 将部分 TiKV 的错误日志从 ERROR 级别调整为 WARN 级别,避免产生过多不必要的告警。[#18745]([https://github.com/tikv/tikv/issues/18745](https://github.com/tikv/tikv/issues/18745))[)](https://github.com/tikv/tikv/issues/18745)) @[exit-code-1]([https://github.com/exit-code-1](https://github.com/exit-code-1))[)](https://github.com/exit-code-1)) - - 将 Region MVCC 的 GC 处理逻辑改由 GC worker 线程执行,统一 GC 的处理逻辑。 [#18727]([https://github.com/tikv/tikv/issues/18727](https://github.com/tikv/tikv/issues/18727))[)](https://github.com/tikv/tikv/issues/18727)) @[v01dstar]([https://github.com/v01dstar](https://github.com/v01dstar))[)](https://github.com/v01dstar)) + - 将部分 TiKV 的错误日志从 ERROR 级别调整为 WARN 级别,避免产生过多不必要的告警。[#18745](https://github.com/tikv/tikv/issues/18745) @[exit-code-1](https://github.com/exit-code-1) + - 将 Region MVCC 的 GC 处理逻辑改由 GC worker 线程执行,统一 GC 的处理逻辑。 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免 gRPC 线程数量太小产生的性能瓶颈。 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) @@ -88,7 +88,7 @@ TiDB 版本:8.5.4 - 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) - 修复了 join order 变更顺序后可能导致的无法规划问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) - 修复了 set_var hint 使用 binding 后有可能无法恢复回原始 variable 设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) - - 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617]([https://github.com/pingcap/tidb/issues/62617](https://github.com/pingcap/tidb/issues/62617))[)](https://github.com/pingcap/tidb/issues/62617)) @[AilinKid]([https://github.com/AilinKid](https://github.com/AilinKid))[)](https://github.com/AilinKid)) + - 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617](https://github.com/pingcap/tidb/issues/62617) @[AilinKid](https://github.com/AilinKid) - 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) - 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) From 5169c9deb83ad66cccc7d13e2cb4aa5c03c65a67 Mon Sep 17 00:00:00 2001 From: qiancai Date: Fri, 24 Oct 2025 10:08:11 +0800 Subject: [PATCH 19/64] Remove placeholder notes from release notes --- releases/release-8.5.4.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index fcc10dd410e9..1cc19527dca9 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -68,7 +68,6 @@ TiDB 版本:8.5.4 + TiDB - 修复当 `tidb_isolation_read_engines` 设置为 "tiflash" 时,`use index` hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - - note [#issue](https://github.com/pingcap/tidb/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) - 修复了 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题. [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) - 修复预处理语句中处理 decimal 与 mysql 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) @@ -133,4 +132,3 @@ TiDB 版本:8.5.4 - 修复 `drop foreign key` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) - 修复订阅 region 时遇到回滚和预写条目导致的 panic 问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) - 修复 TiKV 断言错误导致的 panic 问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) - - note [#issue](https://github.com/pingcap/tiflow/issues/${issue-id}) @[贡献者 GitHub ID](https://github.com/${github-id}) \ No newline at end of file From 24cae239a7eaa3ff35b13e378ed8812851e11597 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 27 Oct 2025 14:47:23 +0800 Subject: [PATCH 20/64] add sql/infra improvements and bug fixes Co-authored-by: bb7133 --- releases/release-8.5.4.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 1cc19527dca9..534e76162394 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -33,6 +33,11 @@ TiDB 版本:8.5.4 - 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - 优化了 Merge join 计算 cost 可能存在遗漏 filter 的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) - 优化了在统计信息收集不及时情况下,越界估算的策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) + - 在执行时间概览中添加 Backoff 时间以便调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) + - 在审计日志插件中添加语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) + - 为审计日志插件添加缓冲日志支持:[#63650](https://github.com/pingcap/tidb/issues/63650) @[bb7133](https://github.com/bb7133) + - instance.plugin_audit_log_flush_interval:刷新缓冲审计日志的时间间隔 + - instance.plugin_audit_log_buffer_size:插件审计日志的缓冲区大小(字节),默认值为 0(不使用缓冲) + TiKV @@ -91,6 +96,11 @@ TiDB 版本:8.5.4 - 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) - 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) + - 修复查询执行可能导致内部 panic 的问题 [#58600](https://github.com/pingcap/tidb/issues/58600) @[Defined2014](https://github.com/Defined2014) + - 修复全局索引在某些 ALTER PARTITION 状态下获取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) + - 修复全局索引在某些情况下返回错误结果的问题 [#61083](https://github.com/pingcap/tidb/issues/61083) @[Defined2014](https://github.com/Defined2014) + - 修复 character_set_results 在遇到错误字符时截断而不是替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) + - 修复 ADD COLUMN 与 UPDATE 并发执行时的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) + PD From a1317facb7c32530bc93bd9f27036e40d1a8e2e8 Mon Sep 17 00:00:00 2001 From: qiancai Date: Mon, 27 Oct 2025 14:56:45 +0800 Subject: [PATCH 21/64] add tw assignment info --- releases/release-8.5.4.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 534e76162394..35e080041a30 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -21,7 +21,7 @@ TiDB 版本:8.5.4 ## 改进提升 -+ TiDB ++ TiDB - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) @@ -39,7 +39,7 @@ TiDB 版本:8.5.4 - instance.plugin_audit_log_flush_interval:刷新缓冲审计日志的时间间隔 - instance.plugin_audit_log_buffer_size:插件审计日志的缓冲区大小(字节),默认值为 0(不使用缓冲) -+ TiKV ++ TiKV - 将部分 BR 模块的可自动恢复的错误的日志级别从ERROR 调整为 WARN [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率。[#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) @@ -49,13 +49,13 @@ TiDB 版本:8.5.4 - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免 gRPC 线程数量太小产生的性能瓶颈。 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) -+ PD ++ PD - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) - 升级 golang 版本到 1.23.12, 同时更新相关依赖 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) - 支持按照表级别维度打散 region 数量,使其按照 scatter-role 和 engine 维度进行均衡 #[8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) -+ TiFlash ++ TiFlash - 跳过不必要读取的数据,优化 TableScan 的读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) - 优化 TiFlash 在宽且稀疏的表上 TableScan 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) @@ -64,13 +64,13 @@ TiDB 版本:8.5.4 + Tools - + TiDB Data Migration (DM) + + TiDB Data Migration (DM) - 修复获取上游 `GTID_MODE` 时大小写不兼容的问题 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) ## 错误修复 -+ TiDB ++ TiDB - 修复当 `tidb_isolation_read_engines` 设置为 "tiflash" 时,`use index` hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - 修复了 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题. [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) @@ -86,7 +86,7 @@ TiDB 版本:8.5.4 - 修复过大的 SST 文件 ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) - 修复当 CPU 和 memory 比例为 1:2 时阻塞 global sort 的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) + - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) - 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) @@ -102,7 +102,7 @@ TiDB 版本:8.5.4 - 修复 character_set_results 在遇到错误字符时截断而不是替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - 修复 ADD COLUMN 与 UPDATE 并发执行时的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) -+ PD ++ PD - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - 修复 /config 和 /members API 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) @@ -113,7 +113,7 @@ TiDB 版本:8.5.4 - 修复 backoff 初始化错误问题 #[9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - 修复 ttl 配置不生效问题 #[9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) -+ TiFlash ++ TiFlash - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - 修复 TiFlash 消耗超过预期的 RU 的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) @@ -123,7 +123,7 @@ TiDB 版本:8.5.4 + Tools - + Backup & Restore (BR) + + Backup & Restore (BR) - Fix the issue where Zstd compression did not take effect in log backup, resulting in uncompressed output. [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - Fixed a bug that may cause flush operation slow in azure blob storage. [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) @@ -133,7 +133,7 @@ TiDB 版本:8.5.4 - Fix the issue that the log backup observer loses observation of a region. [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - Fixed a bug that may cause `restore point` fail when there are some special sized table schemas [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) - + TiCDC + + TiCDC - 修复在配置包含虚拟列的 column 类型 partition 分发器时可能导致的 panic 问题 [#12241](https://github.com/pingcap/tiflow/issues/12241) @[wk989898](https://github.com/wk989898) - 修复在关闭 ddl puller 时可能引发的 panic 问题 [#12244](https://github.com/pingcap/tiflow/issues/12244) @[wk989898](https://github.com/wk989898) From a79998493e377bad89565f0cc3f3548041f11527 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 28 Oct 2025 10:26:23 +0800 Subject: [PATCH 22/64] Apply suggestions from code review --- releases/release-8.5.4.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 35e080041a30..4081d2cb9320 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -66,7 +66,7 @@ TiDB 版本:8.5.4 + TiDB Data Migration (DM) - - 修复获取上游 `GTID_MODE` 时大小写不兼容的问题 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) + - 获取上游 `GTID_MODE` 时,支持兼容大小写 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) ## 错误修复 @@ -88,19 +88,19 @@ TiDB 版本:8.5.4 - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) - 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - - 修复查询使用 ATAN2 函数可能导致的结果错误问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - - 修复了 select 1 from duml 不可使用 instance 级别 plan cache 的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) - - 修复了 join order 变更顺序后可能导致的无法规划问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) - - 修复了 set_var hint 使用 binding 后有可能无法恢复回原始 variable 设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) - - 修复了 ONLY_FULL_GROUP_BY 在取值为负时可能会检查错误的问题 [#62617](https://github.com/pingcap/tidb/issues/62617) @[AilinKid](https://github.com/AilinKid) - - 修复了 ONLY_FULL_GROUP_BY 检查大小写不敏感问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) - - 修复 DP join order 算法可能产生的错误 plan 问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - - 修复了 outer join 改写为 inner join 可能产生的错误 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) + - 修复查询使用 `ATAN2` 函数可能导致结果错误的问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) + - 修复 `select 1 from duml` 无法使用实例级别的计划缓存的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) + - 修复 Join Order 变更顺序后可能导致无法规划的问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) + - 修复 `set_var hint` 使用 Binding 导致无法恢复回原始变量设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) + - 修复 `ONLY_FULL_GROUP_BY` 取值为负数时导致检查失败的问题 [#62617](https://github.com/pingcap/tidb/issues/62617) @[AilinKid](https://github.com/AilinKid) + - 修复 `ONLY_FULL_GROUP_BY` 检查时大小写不敏感的问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) + - 修复 DP Join Order 算法可能产生错误 Plan 的问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) + - 修复 Outer Join 改写为 Inner Join 可能出错的问题 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) - 修复查询执行可能导致内部 panic 的问题 [#58600](https://github.com/pingcap/tidb/issues/58600) @[Defined2014](https://github.com/Defined2014) - - 修复全局索引在某些 ALTER PARTITION 状态下获取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) + - 修复全局索引在某些 `ALTER PARTITION` 状态下获取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) - 修复全局索引在某些情况下返回错误结果的问题 [#61083](https://github.com/pingcap/tidb/issues/61083) @[Defined2014](https://github.com/Defined2014) - - 修复 character_set_results 在遇到错误字符时截断而不是替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - - 修复 ADD COLUMN 与 UPDATE 并发执行时的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) + - 修复 `character_set_results` 在遇到错误字符时进行截断而不是进行替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) + - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) + PD @@ -116,10 +116,10 @@ TiDB 版本:8.5.4 + TiFlash - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - - 修复 TiFlash 消耗超过预期的 RU 的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - - 修复存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 修复存算分离架构下,TiFlash 遇到与 S3 网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 修复了当参数为 `decimal` 类型时,`floor` 和 `ceil` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tidb/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + - 修复 TiFlash 消耗 RU 的统计数据不准确的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) + - 修复在存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复在存算分离架构下,TiFlash 遇到与 S3 网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复当参数为 `DECIMAL` 类型时,`FLOOR()` 和 `CEIL()` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tiflash/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + Tools From 8d1d43f51806e6fe76a47d4a102a5289fab61308 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 28 Oct 2025 15:20:25 +0800 Subject: [PATCH 23/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 4081d2cb9320..f10fd8021c5c 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -87,7 +87,7 @@ TiDB 版本:8.5.4 - 修复当 CPU 和 memory 比例为 1:2 时阻塞 global sort 的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) - - 修复 apply 并发设置后,query 带 index join 导致无法生成 plan 的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) + - 修复开启 `Apply` 算子并发后 (`tidb_enable_parallel_apply = on`),由于缺少实现 Clone 导致计划生成失败的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - 修复查询使用 `ATAN2` 函数可能导致结果错误的问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复 `select 1 from duml` 无法使用实例级别的计划缓存的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) - 修复 Join Order 变更顺序后可能导致无法规划的问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) From a1606cda911ec781d3ad76165bea1ad86da386bc Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Tue, 28 Oct 2025 17:19:46 +0800 Subject: [PATCH 24/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index f10fd8021c5c..9a73c19b7a55 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -91,7 +91,7 @@ TiDB 版本:8.5.4 - 修复查询使用 `ATAN2` 函数可能导致结果错误的问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复 `select 1 from duml` 无法使用实例级别的计划缓存的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) - 修复 Join Order 变更顺序后可能导致无法规划的问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) - - 修复 `set_var hint` 使用 Binding 导致无法恢复回原始变量设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) + - 修复 `set_var` Hint 使用 Binding 导致无法恢复回原始变量设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) - 修复 `ONLY_FULL_GROUP_BY` 取值为负数时导致检查失败的问题 [#62617](https://github.com/pingcap/tidb/issues/62617) @[AilinKid](https://github.com/AilinKid) - 修复 `ONLY_FULL_GROUP_BY` 检查时大小写不敏感的问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) - 修复 DP Join Order 算法可能产生错误 Plan 的问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) From 302b011029a2a6450de30b2043dc60aabc542ada Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Wed, 29 Oct 2025 10:57:04 +0800 Subject: [PATCH 25/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 9a73c19b7a55..a0f61fb69afc 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -19,6 +19,8 @@ TiDB 版本:8.5.4 - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 +- 新增系统变量:[`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl) + ## 改进提升 + TiDB From 4128e94534b74a58ade9b2503cb8071e438e80e8 Mon Sep 17 00:00:00 2001 From: Aolin Date: Wed, 29 Oct 2025 11:41:20 +0800 Subject: [PATCH 26/64] update PD and TiCDC --- releases/release-8.5.4.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index a0f61fb69afc..6b4889b94c18 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -54,8 +54,8 @@ TiDB 版本:8.5.4 + PD - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) - - 升级 golang 版本到 1.23.12, 同时更新相关依赖 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) - - 支持按照表级别维度打散 region 数量,使其按照 scatter-role 和 engine 维度进行均衡 #[8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) + - 将 Golang 版本升级至 1.23.12,并更新相关依赖项 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) + - 支持按表级别维度打散 Region 数量,以在 `scatter-role` 和 `engine` 维度实现均衡分布 [#8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) + TiFlash @@ -137,10 +137,10 @@ TiDB 版本:8.5.4 + TiCDC - - 修复在配置包含虚拟列的 column 类型 partition 分发器时可能导致的 panic 问题 [#12241](https://github.com/pingcap/tiflow/issues/12241) @[wk989898](https://github.com/wk989898) - - 修复在关闭 ddl puller 时可能引发的 panic 问题 [#12244](https://github.com/pingcap/tiflow/issues/12244) @[wk989898](https://github.com/wk989898) - - 支持在 filter 中通过设置 `ignore-txn-start-ts` 来过滤不支持的 DDL 类型 [#12286](https://github.com/pingcap/tiflow/issues/12286) @[asddongmen](https://github.com/asddongmen) - - 修复使用 Azure 下游时可能引起的卡住问题 [#12277] (https://github.com/pingcap/tiflow/issues/12277) @[zurakutsia](https://github.com/zurakutsia) - - 修复 `drop foreign key` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) - - 修复订阅 region 时遇到回滚和预写条目导致的 panic 问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) - - 修复 TiKV 断言错误导致的 panic 问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) + - 修复在配置包含虚拟列的 Column 类型分区分发器时可能导致的 panic 问题 [#12241](https://github.com/pingcap/tiflow/issues/12241) @[wk989898](https://github.com/wk989898) + - 修复在关闭 DDL puller 时可能引发的 panic 问题 [#12244](https://github.com/pingcap/tiflow/issues/12244) @[wk989898](https://github.com/wk989898) + - 支持在 `filter` 配置中通过 `ignore-txn-start-ts` 参数过滤不支持的 DDL 类型 [#12286](https://github.com/pingcap/tiflow/issues/12286) @[asddongmen](https://github.com/asddongmen) + - 修复使用 Azure Blob Storage 作为下游时可能出现的 Changefeed 任务卡住的问题 [#12277](https://github.com/pingcap/tiflow/issues/12277) @[zurakutsia](https://github.com/zurakutsia) + - 修复 `DROP FOREIGN KEY` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) + - 修复订阅 Region 时遇到回滚和预写条目导致 TiCDC panic 的问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) + - 修复 TiKV 中的断言错误可能导致 TiCDC panic 的问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) From 9a9ce40df1cb58d76c0bd9a6ed733375928e9359 Mon Sep 17 00:00:00 2001 From: Aolin Date: Wed, 29 Oct 2025 11:43:20 +0800 Subject: [PATCH 27/64] update Compatibility changes and TiDB --- releases/release-8.5.4.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 6b4889b94c18..616f6084385b 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -17,6 +17,10 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 新增系统变量 `tidb_opt_enable_no_decorrelate_in_select`,用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) + +- 新增系统变量 `tidb_opt_enable_semi_join_rewrite`,用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) + - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 - 新增系统变量:[`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl) @@ -27,19 +31,14 @@ TiDB 版本:8.5.4 - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - - 微调了参数 tidb_opt_ordering_index_selectivity_ratio 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) - - 新增配置项 tidb_opt_enable_semi_join_rewrite 去控制 exists 子查询是否需要被改写 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - - 微调了优化器选择逻辑,在某些情况下新索引更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) - - 优化了 NDV 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) - - 微调了 limit offset 出现在 Index Join 查询中的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) - - 新增 session variable “tidb_opt_enable_no_decorrelate_in_select” 去控制 select list 中的子查询是否需要被解关联 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - - 优化了 Merge join 计算 cost 可能存在遗漏 filter 的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) - - 优化了在统计信息收集不及时情况下,越界估算的策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) - - 在执行时间概览中添加 Backoff 时间以便调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) - - 在审计日志插件中添加语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) - - 为审计日志插件添加缓冲日志支持:[#63650](https://github.com/pingcap/tidb/issues/63650) @[bb7133](https://github.com/bb7133) - - instance.plugin_audit_log_flush_interval:刷新缓冲审计日志的时间间隔 - - instance.plugin_audit_log_buffer_size:插件审计日志的缓冲区大小(字节),默认值为 0(不使用缓冲) + - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) + - 调整优化器的选择逻辑,使新创建的索引在某些情况下更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) + - 优化 NDV (number of distinct values) 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) + - 优化 Index Join 查询中包含 `LIMIT OFFSET` 时的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) + - 优化 Merge Join 在计算成本时可能遗漏过滤条件的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + - 优化统计信息未及时收集时的越界估算策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) + - 在执行时间概览中新增 Backoff 时间指标,便于调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) + - 在审计日志插件中新增语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) + TiKV From 17b3bb93399431cd610fe9d5e39fea9a2ff14614 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Wed, 29 Oct 2025 15:38:13 +0800 Subject: [PATCH 28/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 616f6084385b..7fcca75e8401 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -42,12 +42,12 @@ TiDB 版本:8.5.4 + TiKV - - 将部分 BR 模块的可自动恢复的错误的日志级别从ERROR 调整为 WARN [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) - - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率。[#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) - - 基于 GC safe point 和 Rocksdb 的统计信息计算 MVCC 的冗余读,提升 compaction 的效率和准确性。[#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) - - 将部分 TiKV 的错误日志从 ERROR 级别调整为 WARN 级别,避免产生过多不必要的告警。[#18745](https://github.com/tikv/tikv/issues/18745) @[exit-code-1](https://github.com/exit-code-1) - - 将 Region MVCC 的 GC 处理逻辑改由 GC worker 线程执行,统一 GC 的处理逻辑。 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) - - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免 gRPC 线程数量太小产生的性能瓶颈。 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) + - 将部分 BR 模块的可自动恢复的错误的日志级别从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) + - 将部分 TiKV 的错误日志从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18745](https://github.com/tikv/tikv/issues/18745) @[exit-code-1](https://github.com/exit-code-1) + - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率 [#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) + - 基于 GC safe point 和 Rocksdb 的统计信息计算 MVCC 的冗余读,提升 Compaction 的效率和准确性 [#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) + - 将 Region MVCC 的 GC 处理逻辑更改为由 GC Worker 线程执行,统一 GC 的处理逻辑 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) + - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免由于 gRPC 线程数量太小导致的性能瓶颈 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + PD From a70dc43dcc801a77f94def1188da23b708e62ff6 Mon Sep 17 00:00:00 2001 From: JaySon Date: Wed, 29 Oct 2025 17:32:59 +0800 Subject: [PATCH 29/64] update tiflash enhancement --- releases/release-8.5.4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 7fcca75e8401..fa7f88277566 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -62,6 +62,7 @@ TiDB 版本:8.5.4 - 优化 TiFlash 在宽且稀疏的表上 TableScan 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) - 优化当集群存在大量表时,添加向量索引时的 TiFlash CPU 开销 [#10357](https://github.com/pingcap/tiflash/issues/10357) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - 减少不必要的处理 raft commands 时的日志 [#10467](https://github.com/pingcap/tiflash/issues/10467) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 优化小数据量分区表的 TableScan 读取性能 [#10487](https://github.com/pingcap/tiflash/issues/10487) @[JaySon-Huang](https://github.com/JaySon-Huang) + Tools From c05b3cc57cb6d00a035e60d7b5f337b0f18b4788 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Thu, 30 Oct 2025 10:45:31 +0800 Subject: [PATCH 30/64] Apply suggestions from code review --- releases/release-8.5.4.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index fa7f88277566..7e620d4ca613 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -74,21 +74,21 @@ TiDB 版本:8.5.4 + TiDB - - 修复当 `tidb_isolation_read_engines` 设置为 "tiflash" 时,`use index` hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - - 修复了 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题. [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) + - 修复当 `tidb_isolation_read_engines` 设置为 `tiflash` 时,`use index` Hint 无法生效的问题 [#60869](https://github.com/pingcap/tidb/issues/60869) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) + - 修复 `max_execution_time` 对 `SELECT FOR UPDATE` 语句不生效的问题 [#62960](https://github.com/pingcap/tidb/issues/62960) @[ekexium](https://github.com/ekexium) - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) - - 修复预处理语句中处理 decimal 与 mysql 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) - - 修复 `truncate` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) - - 修复当 `Out Of Quota For Local Temporary Space` 触发时,spill 文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) - - 修复查询`INFORMATION_SCHEMA`表使用正则表达式过滤结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) - - 修复从 PD 获取 timestamp 异常时没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) - - 修复modify column时,owner TiDB和非ownerTiDB查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) - - 修复动态调参后 `ADMIN ALTER DDL JOBS`显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) - - 修复通过事务加索引时GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) - - 修复过大的 SST 文件 ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) - - 修复当 CPU 和 memory 比例为 1:2 时阻塞 global sort 的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) - - 修复超过 16 个 DXF 任务上限时无法 cancel pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - - 修复cancel DXF任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) + - 修复预处理语句中处理 `Decimal` 的方式与 MySQL 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + - 修复 `TRUNCATE()` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) + - 修复当 `Out Of Quota For Local Temporary Space` 触发时,落盘文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) + - 修复使用正则表达式查询 `INFORMATION_SCHEMA` 表,结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) + - 修复从 PD 获取时间戳异常时没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) + - 修复 `MODIFY COLUMN` 时,owner TiDB 和非 owner TiDB 查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) + - 修复动态调参后 `ADMIN ALTER DDL JOBS` 显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) + - 修复通过事务加索引时 GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复过大的 SST 文件 Ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) + - 修复当 CPU 和内存比例为 1:2 时阻塞全局排序的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复超过 16 个分布式执行框架 (Distributed eXecution Framework, DXF) 任务上限时无法取消 Pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) + - 修复取消 DXF 任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) - 修复开启 `Apply` 算子并发后 (`tidb_enable_parallel_apply = on`),由于缺少实现 Clone 导致计划生成失败的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - 修复查询使用 `ATAN2` 函数可能导致结果错误的问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复 `select 1 from duml` 无法使用实例级别的计划缓存的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) From 0595ad5963e0a168d5906cc75c332f68b711ebb9 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Thu, 30 Oct 2025 10:55:58 +0800 Subject: [PATCH 31/64] Apply suggestions from code review --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 7e620d4ca613..dcf8ded33076 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -82,7 +82,7 @@ TiDB 版本:8.5.4 - 修复当 `Out Of Quota For Local Temporary Space` 触发时,落盘文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) - 修复使用正则表达式查询 `INFORMATION_SCHEMA` 表,结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) - 修复从 PD 获取时间戳异常时没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) - - 修复 `MODIFY COLUMN` 时,owner TiDB 和非 owner TiDB 查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) + - 修复执行 `MODIFY COLUMN` 时,owner TiDB 和非 owner TiDB 查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) - 修复动态调参后 `ADMIN ALTER DDL JOBS` 显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) - 修复通过事务加索引时 GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) - 修复过大的 SST 文件 Ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) From 99abef5d7d0c6ff7ee86239abc6559095ebbad00 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Fri, 31 Oct 2025 15:54:21 +0800 Subject: [PATCH 32/64] Apply suggestions from code review --- releases/release-8.5.4.md | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index dcf8ded33076..63dc95c53671 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -58,11 +58,11 @@ TiDB 版本:8.5.4 + TiFlash - - 跳过不必要读取的数据,优化 TableScan 的读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) - - 优化 TiFlash 在宽且稀疏的表上 TableScan 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 优化当集群存在大量表时,添加向量索引时的 TiFlash CPU 开销 [#10357](https://github.com/pingcap/tiflash/issues/10357) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - - 减少不必要的处理 raft commands 时的日志 [#10467](https://github.com/pingcap/tiflash/issues/10467) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 优化小数据量分区表的 TableScan 读取性能 [#10487](https://github.com/pingcap/tiflash/issues/10487) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 跳过不必要数据读取,提升 `TableScan` 读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) + - 优化 TiFlash 在列多且稀疏(大量 `NULL` 或空值)的宽表上执行 `TableScan` 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 在集群存在大量表的场景中,降低添加向量索引时 TiFlash 的 CPU 开销 [#10357](https://github.com/pingcap/tiflash/issues/10357) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) + - 减少处理无用 Raft 命令时产生的不必要日志输出,降低日志量 [#10467](https://github.com/pingcap/tiflash/issues/10467) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 优化 TiFlash 在小数据量分区表上执行 `TableScan` 的性能 [#10487](https://github.com/pingcap/tiflash/issues/10487) @[JaySon-Huang](https://github.com/JaySon-Huang) + Tools @@ -106,14 +106,14 @@ TiDB 版本:8.5.4 + PD - - 修复 PD Client 重试策略没有正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - - 修复 /config 和 /members API 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) - - 修复 tso proxy 错误处理 #[9188](https://github.com/tikv/pd/issues/9188) @[Tema](https://github.com/Tema) - - 修复在关闭 bucket 上报后, split bucket 依然生效 #[9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) - - 修复 resource manager 错误分配 token 问题 #[9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) - - 修复 pd leader 变更后, placement rule 不生效问题 #[9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) - - 修复 backoff 初始化错误问题 #[9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - - 修复 ttl 配置不生效问题 #[9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + - 修复 PD Client 重试策略未正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + - 修复 TSO HTTP API `/config` 和 `/members` 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) + - 修复 TSO Follower Proxy 的错误处理逻辑 [#9188](https://github.com/tikv/pd/issues/9188) @[Tema](https://github.com/Tema) + - 修复在关闭 bucket 上报功能后, split bucket 依然生效的问题 [#9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) + - 修复 Resource Manager 错误分配 token 导致查询卡住的问题 [#9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) + - 修复 PD leader 切换后, Placement Rule 未生效问题 [#9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) + - 修复 backoff 初始化错误问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) + - 修复 TTL 配置未生效问题 [#9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash @@ -127,13 +127,13 @@ TiDB 版本:8.5.4 + Backup & Restore (BR) - - Fix the issue where Zstd compression did not take effect in log backup, resulting in uncompressed output. [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - - Fixed a bug that may cause flush operation slow in azure blob storage. [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - - Fixed a bug that may cause `log truncate` panic when failed to delete file. [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) - - Fixed a bug that may cause `stats_meta` be zero when checksumming disabled. [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) - - Reduced chance of BR restore failure from S3-compatible storage when the S3 server limits bandwidth through traffic shaping. [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) - - Fix the issue that the log backup observer loses observation of a region. [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - - Fixed a bug that may cause `restore point` fail when there are some special sized table schemas [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + - 修复了日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) + - 修复备份数据到 Azure Blob Storage 时可能导致 flush 操作变慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) + - 修复删除文件失败时可能 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) + - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致恢复后 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) + - 降低了 S3 兼容存储服务在启用带宽限制时使用 BR 恢复数据失败的概率 [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) + - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致备份数据不完整的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) + - 修复当备份的表中存在一些特殊的 schema 时,可能导致恢复时 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + TiCDC From 0697a4808e12929c520a26399118f6b3ca182ced Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Fri, 31 Oct 2025 15:58:29 +0800 Subject: [PATCH 33/64] remove the duplicated #9013 --- releases/release-8.5.4.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 63dc95c53671..831187acebb9 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -112,7 +112,6 @@ TiDB 版本:8.5.4 - 修复在关闭 bucket 上报功能后, split bucket 依然生效的问题 [#9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) - 修复 Resource Manager 错误分配 token 导致查询卡住的问题 [#9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) - 修复 PD leader 切换后, Placement Rule 未生效问题 [#9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) - - 修复 backoff 初始化错误问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - 修复 TTL 配置未生效问题 [#9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash @@ -127,12 +126,12 @@ TiDB 版本:8.5.4 + Backup & Restore (BR) - - 修复了日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) + - 修复日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - 修复备份数据到 Azure Blob Storage 时可能导致 flush 操作变慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - - 修复删除文件失败时可能 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) + - 修复删除文件失败时可能出现 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致恢复后 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) - 降低了 S3 兼容存储服务在启用带宽限制时使用 BR 恢复数据失败的概率 [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) - - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致备份数据不完整的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) + - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致备份数据不完整的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - 修复当备份的表中存在一些特殊的 schema 时,可能导致恢复时 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + TiCDC From fd28ec982719e12855d437f7297f79f1ece00e52 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Fri, 31 Oct 2025 16:57:18 +0800 Subject: [PATCH 34/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 831187acebb9..9d7299263f2f 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -129,10 +129,10 @@ TiDB 版本:8.5.4 - 修复日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - 修复备份数据到 Azure Blob Storage 时可能导致 flush 操作变慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - 修复删除文件失败时可能出现 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) - - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致恢复后 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) + - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) - 降低了 S3 兼容存储服务在启用带宽限制时使用 BR 恢复数据失败的概率 [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致备份数据不完整的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - - 修复当备份的表中存在一些特殊的 schema 时,可能导致恢复时 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + - 修复当备份的表中存在一些特殊的 schema 时,可能导致 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + TiCDC From 2296d5bcb3cd6b37dbd107475c94e2068498129f Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 10:20:25 +0800 Subject: [PATCH 35/64] refine the description of #9343 --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 9d7299263f2f..17afa89f97c0 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -112,7 +112,7 @@ TiDB 版本:8.5.4 - 修复在关闭 bucket 上报功能后, split bucket 依然生效的问题 [#9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) - 修复 Resource Manager 错误分配 token 导致查询卡住的问题 [#9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) - 修复 PD leader 切换后, Placement Rule 未生效问题 [#9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) - - 修复 TTL 配置未生效问题 [#9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + - 修复 PD 在解析以科学计数法表示的大数值时可能失败,从而导致部分 TTL 相关的配置不生效的问题 [#9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash From 01f0972cba0505877fd2c228f5cb93c97ffd0bc0 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 14:16:30 +0800 Subject: [PATCH 36/64] add tidb_enable_binding_usage --- releases/release-8.5.4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 17afa89f97c0..16e419b18276 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -17,6 +17,8 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 新增系统变量 [`tidb_enable_binding_usage`](/system-variables.md#tidb_enable_binding_usage-new-in-v854-and-v900),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) + - 新增系统变量 `tidb_opt_enable_no_decorrelate_in_select`,用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - 新增系统变量 `tidb_opt_enable_semi_join_rewrite`,用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) From df1342d79223b87cdaa61b044c54f5f77546a262 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 3 Nov 2025 14:52:59 +0800 Subject: [PATCH 37/64] Apply suggestions from code review --- releases/release-8.5.4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 16e419b18276..ac8a9f381ef5 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -17,6 +17,8 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 新增系统变量 [`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl),用于控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) + - 新增系统变量 [`tidb_enable_binding_usage`](/system-variables.md#tidb_enable_binding_usage-new-in-v854-and-v900),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) - 新增系统变量 `tidb_opt_enable_no_decorrelate_in_select`,用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) @@ -25,8 +27,6 @@ TiDB 版本:8.5.4 - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 -- 新增系统变量:[`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl) - ## 改进提升 + TiDB From a6bb5dbc78e3bb5143375433f4cc805881481fb8 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 14:54:10 +0800 Subject: [PATCH 38/64] Apply suggestions from code review Co-authored-by: Aolin --- releases/release-8.5.4.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index ac8a9f381ef5..b166fa56eedd 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -13,19 +13,19 @@ TiDB 版本:8.5.4 ## 兼容性变更 -- (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) +- (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) -- 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 - 新增系统变量 [`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl),用于控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) -- 新增系统变量 [`tidb_enable_binding_usage`](/system-variables.md#tidb_enable_binding_usage-new-in-v854-and-v900),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) +- 新增系统变量 [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) - 新增系统变量 `tidb_opt_enable_no_decorrelate_in_select`,用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - 新增系统变量 `tidb_opt_enable_semi_join_rewrite`,用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) -- 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#check-interval-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-num-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-threshold-从-v757-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v7.5/tikv-configuration-file#bottommost-level-force-从-v757-版本开始引入)。 +- 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 ## 改进提升 From b2d768b19411d0b0ee50cc66fa5f5b47a24bba1d Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 15:03:43 +0800 Subject: [PATCH 39/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index b166fa56eedd..d3d0d6a723b1 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -17,6 +17,8 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 从 v8.5.4 开始,系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) + - 新增系统变量 [`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl),用于控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) - 新增系统变量 [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) From 5c486ee9a6a863e97fc9f8d31ae83db149a69404 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 15:41:30 +0800 Subject: [PATCH 40/64] add graceful_wait_shutdown_timeout --- releases/release-8.5.4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index d3d0d6a723b1..bb6501d349a1 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -29,6 +29,8 @@ TiDB 版本:8.5.4 - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 +- 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) + ## 改进提升 + TiDB From bb67a5ef8e0e782c6680a8d73a198085005f0ddb Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 3 Nov 2025 17:34:18 +0800 Subject: [PATCH 41/64] Apply suggestions from code review Co-authored-by: Grace Cai --- releases/release-8.5.4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index bb6501d349a1..83e9ccdd8398 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -35,13 +35,13 @@ TiDB 版本:8.5.4 + TiDB - - (dup): release-9.0.0.md(beta.1) > # SQL 功能 * 支持对分区表的非唯一列创建全局索引 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) + - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) - 调整优化器的选择逻辑,使新创建的索引在某些情况下更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) - 优化 NDV (number of distinct values) 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) - 优化 Index Join 查询中包含 `LIMIT OFFSET` 时的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) - - 优化 Merge Join 在计算成本时可能遗漏过滤条件的情况 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) - 优化统计信息未及时收集时的越界估算策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) - 在执行时间概览中新增 Backoff 时间指标,便于调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) - 在审计日志插件中新增语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) From 5b7a47ecd4b19911ca539a7ffe817dc899f2c63e Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 3 Nov 2025 17:35:35 +0800 Subject: [PATCH 42/64] Apply suggestions from code review --- releases/release-8.5.4.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 83e9ccdd8398..da90eec523de 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -41,7 +41,6 @@ TiDB 版本:8.5.4 - 调整优化器的选择逻辑,使新创建的索引在某些情况下更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) - 优化 NDV (number of distinct values) 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) - 优化 Index Join 查询中包含 `LIMIT OFFSET` 时的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) - - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) - 优化统计信息未及时收集时的越界估算策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) - 在执行时间概览中新增 Backoff 时间指标,便于调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) - 在审计日志插件中新增语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) @@ -109,7 +108,7 @@ TiDB 版本:8.5.4 - 修复全局索引在某些情况下返回错误结果的问题 [#61083](https://github.com/pingcap/tidb/issues/61083) @[Defined2014](https://github.com/Defined2014) - 修复 `character_set_results` 在遇到错误字符时进行截断而不是进行替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) - + - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + PD - 修复 PD Client 重试策略未正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) From 3cdc47073e526948951d18cc984ecb453e7c8b1d Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 3 Nov 2025 17:41:42 +0800 Subject: [PATCH 43/64] add links --- releases/release-8.5.4.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index da90eec523de..040802989a53 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -23,9 +23,9 @@ TiDB 版本:8.5.4 - 新增系统变量 [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) -- 新增系统变量 `tidb_opt_enable_no_decorrelate_in_select`,用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) +- 新增系统变量 [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入),用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) -- 新增系统变量 `tidb_opt_enable_semi_join_rewrite`,用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) +- 新增系统变量 [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入),用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 @@ -109,6 +109,7 @@ TiDB 版本:8.5.4 - 修复 `character_set_results` 在遇到错误字符时进行截断而不是进行替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + + PD - 修复 PD Client 重试策略未正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) From c819b3bd63a5bcfd41d2e4f6973970d3fda1e400 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Mon, 3 Nov 2025 18:05:43 +0800 Subject: [PATCH 44/64] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Aolin Co-authored-by: 山岚 <36239017+YuJuncen@users.noreply.github.com> --- releases/release-8.5.4.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 040802989a53..2b06e549268c 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -35,6 +35,8 @@ TiDB 版本:8.5.4 + TiDB + - 支持表级别数据打散(实验特性):你可以通过 [`SHOW TABLE DISTRIBUTION`](/sql-statements/sql-statement-show-distribution-jobs.md) 语句查看某张表在集群中所有 TiKV 节点上的数据分布情况。如果存在数据分布不均衡,可以通过 [`DISTRIBUTE TABLE`](/sql-statements/sql-statement-distribute-table.md) 语句对该表进行数据打散,以提升负载均衡性 [#63260](https://github.com/pingcap/tidb/issues/63260) @[bufferflies](https://github.com/bufferflies) + - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) @@ -61,7 +63,7 @@ TiDB 版本:8.5.4 - 将 Golang 版本升级至 1.23.12,并更新相关依赖项 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) - 支持按表级别维度打散 Region 数量,以在 `scatter-role` 和 `engine` 维度实现均衡分布 [#8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) -+ TiFlash ++ TiFlash - 跳过不必要数据读取,提升 `TableScan` 读取性能 [#9875](https://github.com/pingcap/tiflash/issues/9875) @[gengliqi](https://github.com/gengliqi) - 优化 TiFlash 在列多且稀疏(大量 `NULL` 或空值)的宽表上执行 `TableScan` 的性能 [#10361](https://github.com/pingcap/tiflash/issues/10361) @[JaySon-Huang](https://github.com/JaySon-Huang) @@ -110,14 +112,15 @@ TiDB 版本:8.5.4 - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) + + PD - 修复 PD Client 重试策略未正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) - - 修复 TSO HTTP API `/config` 和 `/members` 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) + - 修复 TSO HTTP API `/config` 和 `/members` 的错误输出 [#9797](https://github.com/tikv/pd/issues/9797) @[lhy1024](https://github.com/lhy1024) - 修复 TSO Follower Proxy 的错误处理逻辑 [#9188](https://github.com/tikv/pd/issues/9188) @[Tema](https://github.com/Tema) - - 修复在关闭 bucket 上报功能后, split bucket 依然生效的问题 [#9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) - - 修复 Resource Manager 错误分配 token 导致查询卡住的问题 [#9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) - - 修复 PD leader 切换后, Placement Rule 未生效问题 [#9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) + - 修复在关闭 bucket 上报功能后,split bucket 依然生效的问题 [#9726](https://github.com/tikv/pd/issues/9726) @[bufferflies](https://github.com/bufferflies) + - 修复 Resource Manager 错误分配 token 导致查询卡住的问题 [#9455](https://github.com/tikv/pd/issues/9455) @[JmPotato](https://github.com/JmPotato) + - 修复 PD leader 切换后,Placement Rule 未生效问题 [#9602](https://github.com/tikv/pd/issues/9602) @[okJiang](https://github.com/okJiang) - 修复 PD 在解析以科学计数法表示的大数值时可能失败,从而导致部分 TTL 相关的配置不生效的问题 [#9343](https://github.com/tikv/pd/issues/9343) @[lhy1024](https://github.com/lhy1024) + TiFlash @@ -133,11 +136,11 @@ TiDB 版本:8.5.4 + Backup & Restore (BR) - 修复日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - - 修复备份数据到 Azure Blob Storage 时可能导致 flush 操作变慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) + - 修复备份数据到 Azure Blob Storage 时 flush 偶尔会很慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - 修复删除文件失败时可能出现 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) - 降低了 S3 兼容存储服务在启用带宽限制时使用 BR 恢复数据失败的概率 [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) - - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致备份数据不完整的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) + - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致日志备份进度无法推进的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - 修复当备份的表中存在一些特殊的 schema 时,可能导致 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) + TiCDC From 38818a7dec9fd646f58be5be3878cbb81dd8f90c Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 3 Nov 2025 18:16:14 +0800 Subject: [PATCH 45/64] Apply suggestions from code review Co-authored-by: Grace Cai --- releases/release-8.5.4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 2b06e549268c..4fb54c1e8c57 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -60,7 +60,7 @@ TiDB 版本:8.5.4 + PD - 减少非必要的错误日志 [#9370](https://github.com/tikv/pd/issues/9370) @[bufferflies](https://github.com/bufferflies) - - 将 Golang 版本升级至 1.23.12,并更新相关依赖项 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) + - 将 Golang 版本从 1.23.0 升级至 1.23.12,并更新相关依赖项 [#9788](https://github.com/tikv/pd/issues/9788) @[JmPotato](https://github.com/JmPotato) - 支持按表级别维度打散 Region 数量,以在 `scatter-role` 和 `engine` 维度实现均衡分布 [#8986](https://github.com/tikv/pd/issues/8986) @[bufferflies](https://github.com/bufferflies) + TiFlash @@ -148,7 +148,7 @@ TiDB 版本:8.5.4 - 修复在配置包含虚拟列的 Column 类型分区分发器时可能导致的 panic 问题 [#12241](https://github.com/pingcap/tiflow/issues/12241) @[wk989898](https://github.com/wk989898) - 修复在关闭 DDL puller 时可能引发的 panic 问题 [#12244](https://github.com/pingcap/tiflow/issues/12244) @[wk989898](https://github.com/wk989898) - 支持在 `filter` 配置中通过 `ignore-txn-start-ts` 参数过滤不支持的 DDL 类型 [#12286](https://github.com/pingcap/tiflow/issues/12286) @[asddongmen](https://github.com/asddongmen) - - 修复使用 Azure Blob Storage 作为下游时可能出现的 Changefeed 任务卡住的问题 [#12277](https://github.com/pingcap/tiflow/issues/12277) @[zurakutsia](https://github.com/zurakutsia) + - 修复使用 Azure Blob Storage 作为下游时可能出现数据同步任务卡住的问题 [#12277](https://github.com/pingcap/tiflow/issues/12277) @[zurakutsia](https://github.com/zurakutsia) - 修复 `DROP FOREIGN KEY` DDL 没有同步到下游的问题 [#12328](https://github.com/pingcap/tiflow/issues/12328) @[3AceShowHand](https://github.com/3AceShowHand) - 修复订阅 Region 时遇到回滚和预写条目导致 TiCDC panic 的问题 [#19048](https://github.com/tikv/tikv/issues/19048) @[3AceShowHand](https://github.com/3AceShowHand) - 修复 TiKV 中的断言错误可能导致 TiCDC panic 的问题 [#18498](https://github.com/tikv/tikv/issues/18498) @[tharanga](https://github.com/tharanga) From 9bafa7c95c86dc47708496ffa028ea7cd9896edc Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 3 Nov 2025 18:21:43 +0800 Subject: [PATCH 46/64] Apply suggestions from code review Co-authored-by: Grace Cai --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 4fb54c1e8c57..dded666013e0 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -44,7 +44,7 @@ TiDB 版本:8.5.4 - 优化 NDV (number of distinct values) 较小的列的查询估算逻辑 [#61792](https://github.com/pingcap/tidb/issues/61792) @[terry1purcell](https://github.com/terry1purcell) - 优化 Index Join 查询中包含 `LIMIT OFFSET` 时的估算策略 [#45077](https://github.com/pingcap/tidb/issues/45077) @[qw4990](https://github.com/qw4990) - 优化统计信息未及时收集时的越界估算策略 [#58068](https://github.com/pingcap/tidb/issues/58068) @[terry1purcell](https://github.com/terry1purcell) - - 在执行时间概览中新增 Backoff 时间指标,便于调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) + - 在 Grafana 上的 **Performance Overview** > **SQL Execute Time Overview** 面板中新增 `backoff` 时间指标,便于调试 [#61441](https://github.com/pingcap/tidb/issues/61441) @[dbsid](https://github.com/dbsid) - 在审计日志插件中新增语句 ID 信息 [#63525](https://github.com/pingcap/tidb/issues/63525) @[YangKeao](https://github.com/YangKeao) + TiKV From 77711ba2b6da063c7afc1561c035f84d5364bdcd Mon Sep 17 00:00:00 2001 From: qiancai Date: Tue, 4 Nov 2025 10:21:52 +0800 Subject: [PATCH 47/64] reorder compatibility changes --- releases/release-8.5.4.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index dded666013e0..7d82d5457e17 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -13,21 +13,23 @@ TiDB 版本:8.5.4 ## 兼容性变更 -- (dup): release-7.5.7.md > 兼容性变更 - TiKV 废弃以下配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) +### 系统变量 -- 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 +- 系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) -- 从 v8.5.4 开始,系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) - -- 新增系统变量 [`tidb_stats_update_during_ddl`](/system-variables.md#tidb_stats_update_during_ddl),用于控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) +- 新增以下系统变量: -- 新增系统变量 [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入),用于控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) + - [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入):控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) + - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) -- 新增系统变量 [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入),用于控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) +### 配置参数 -- 新增系统变量 [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入),用于控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) +- (dup): release-7.5.7.md > 兼容性变更 - 废弃以下 TiKV 配置项,并由新的 [`gc.auto-compaction`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file/#gcauto-compaction) 配置项替代,用于控制自动 compaction 行为 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) -- 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 + - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 + - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 - 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) From 149032c2279d89f2018654d1cc1fc41ebce2b1b8 Mon Sep 17 00:00:00 2001 From: qiancai Date: Tue, 4 Nov 2025 13:44:12 +0800 Subject: [PATCH 48/64] add default values --- releases/release-8.5.4.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 7d82d5457e17..57e6e3adda05 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -19,10 +19,10 @@ TiDB 版本:8.5.4 - 新增以下系统变量: - - [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入):控制是否收集 SQL 执行计划绑定的使用统计信息 [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) - - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作 [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询 [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) + - [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入):控制是否收集 SQL 执行计划绑定的使用统计信息,默认值为 `OFF` [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) + - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作,默认值为 `OFF` [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询,默认值为 `OFF` [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为,默认值为 `OFF` [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) ### 配置参数 @@ -31,7 +31,7 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 -- 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) +- 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间,默认值为 `600` 秒。在此期间,TiFlash 允许尚未完成的 MPP 任务继续执行,但不再接收新的 MPP 任务。如果所有正在运行的 MPP 任务都在此超时时间之前完成,TiFlash 将立即关闭;否则将在等待时间结束后强制关闭。 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) ## 改进提升 From e6bd4dcc0052db8b4fc30c0cb4bc6e05eea700ae Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 4 Nov 2025 14:01:25 +0800 Subject: [PATCH 49/64] Update releases/release-8.5.4.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 山岚 <36239017+YuJuncen@users.noreply.github.com> --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 57e6e3adda05..64e5375e198d 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -140,7 +140,7 @@ TiDB 版本:8.5.4 - 修复日志备份中 zstd 压缩未生效,导致输出未被压缩的问题 [#18836](https://github.com/tikv/tikv/issues/18836) @[3pointer](https://github.com/3pointer) - 修复备份数据到 Azure Blob Storage 时 flush 偶尔会很慢的问题 [#18410](https://github.com/tikv/tikv/issues/18410) @[YuJuncen](https://github.com/YuJuncen) - 修复删除文件失败时可能出现 `log truncate` 的问题 [#63358](https://github.com/pingcap/tidb/issues/63358) @[YuJuncen](https://github.com/YuJuncen) - - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致 `stats_meta` 表为空的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) + - 修复在备份数据时如果设置 `--checksum` 为 `false` 可能导致恢复后 `mysql.stats_meta` 表的 count 列为 `0` 的问题 [#60978](https://github.com/pingcap/tidb/issues/60978) @[Leavrth](https://github.com/Leavrth) - 降低了 S3 兼容存储服务在启用带宽限制时使用 BR 恢复数据失败的概率 [#18846](https://github.com/tikv/tikv/issues/18846) @[kennytm](https://github.com/kennytm) - 修复 `log backup observer` 可能丢失对某个 Region 的监听,从而导致日志备份进度无法推进的问题 [#18243](https://github.com/tikv/tikv/issues/18243) @[Leavrth](https://github.com/Leavrth) - 修复当备份的表中存在一些特殊的 schema 时,可能导致 `restore point` 创建失败的问题 [#63663](https://github.com/pingcap/tidb/issues/63663) @[RidRisR](https://github.com/RidRisR) From ddf793943fd04db3d3d11793a15f2dfc774c7d18 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 4 Nov 2025 15:19:44 +0800 Subject: [PATCH 50/64] add #6182 --- releases/release-8.5.4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 64e5375e198d..9c3467b117b5 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -15,6 +15,8 @@ TiDB 版本:8.5.4 ### 系统变量 +- 系统变量 [`tidb_mpp_store_fail_ttl`](/system-variables.md#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) + - 系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) - 新增以下系统变量: From b7c0ebaaa137aae5c20676cdabc16ef62652ba88 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 4 Nov 2025 15:21:10 +0800 Subject: [PATCH 51/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 9c3467b117b5..72cc8198b025 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -15,9 +15,9 @@ TiDB 版本:8.5.4 ### 系统变量 -- 系统变量 [`tidb_mpp_store_fail_ttl`](/system-variables.md#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) +- 系统变量 [`tidb_mpp_store_fail_ttl`](/system-variables.md#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) -- 系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) +- 系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) - 新增以下系统变量: From 39e4728def89b70e9043f555a37087147c2f0227 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Wed, 5 Nov 2025 12:32:55 +0800 Subject: [PATCH 52/64] Apply suggestions from code review Co-authored-by: Lilian Lee --- releases/release-8.5.4.md | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 72cc8198b025..6050c5e859c0 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -53,12 +53,12 @@ TiDB 版本:8.5.4 + TiKV - - 将部分 BR 模块的可自动恢复的错误的日志级别从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) - - 将部分 TiKV 的错误日志从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18745](https://github.com/tikv/tikv/issues/18745) @[exit-code-1](https://github.com/exit-code-1) - - 将 Raft 模块检查 GC 的流程拆分为两个阶段,提升 Region 冗余 MVCC 版本 GC 的效率 [#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) - - 基于 GC safe point 和 Rocksdb 的统计信息计算 MVCC 的冗余读,提升 Compaction 的效率和准确性 [#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) - - 将 Region MVCC 的 GC 处理逻辑更改为由 GC Worker 线程执行,统一 GC 的处理逻辑 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) - - 优化 gRPC 线程池线程数量默认值的计算方式,将原来的固定数据调整为根据总的 CPU 配置动态计算,避免由于 gRPC 线程数量太小导致的性能瓶颈 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) + - 将 BR 模块中部分可自动恢复的错误日志级别从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18493](https://github.com/tikv/tikv/issues/18493) @[YuJuncen](https://github.com/YuJuncen) + - 将 TiKV 的部分错误日志级别从 `ERROR` 调整为 `WARN`,减少不必要的告警 [#18745](https://github.com/tikv/tikv/issues/18745) @[exit-code-1](https://github.com/exit-code-1) + - 将 Raft 模块检查 GC 的流程拆分为两个阶段,以提升 Region 中冗余的 MVCC 版本 GC 的效率 [#18695](https://github.com/tikv/tikv/issues/18695) @[v01dstar](https://github.com/v01dstar) + - 基于 GC safe point 和 RocksDB 的统计信息计算 MVCC 的冗余度,提升 Compaction 的效率和准确性 [#18697](https://github.com/tikv/tikv/issues/18697) @[v01dstar](https://github.com/v01dstar) + - 将 Region MVCC 的 GC 处理逻辑更改为由 GC Worker 线程执行,从而统一 GC 的处理逻辑 [#18727](https://github.com/tikv/tikv/issues/18727) @[v01dstar](https://github.com/v01dstar) + - 优化 gRPC 线程池线程数量默认值的计算方式,将原固定值调整为根据总的 CPU 配置动态计算,避免因 gRPC 线程数量过小导致的性能瓶颈 [#18613](https://github.com/tikv/tikv/issues/18613) @[LykxSassinator](https://github.com/LykxSassinator) - (dup): release-7.5.7.md > 改进提升> TiKV - 优化在存在大量 SST 文件的环境中 async snapshot 和 write 的尾延迟 [#18743](https://github.com/tikv/tikv/issues/18743) @[Connor1996](https://github.com/Connor1996) + PD @@ -90,29 +90,29 @@ TiDB 版本:8.5.4 - (dup): release-7.5.7.md > 错误修复> TiDB - 修复估算跨月或跨年的行数时,结果可能过分偏大的问题 [#50080](https://github.com/pingcap/tidb/issues/50080) @[terry1purcell](https://github.com/terry1purcell) - 修复预处理语句中处理 `Decimal` 的方式与 MySQL 不一致的问题 [#62602](https://github.com/pingcap/tidb/issues/62602) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) - 修复 `TRUNCATE()` 函数中短路径处理错误的问题 [#57608](https://github.com/pingcap/tidb/issues/57608) @[xzhangxian1008](https://github.com/xzhangxian1008) - - 修复当 `Out Of Quota For Local Temporary Space` 触发时,落盘文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) - - 修复使用正则表达式查询 `INFORMATION_SCHEMA` 表,结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) - - 修复从 PD 获取时间戳异常时没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) - - 修复执行 `MODIFY COLUMN` 时,owner TiDB 和非 owner TiDB 查询数据不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) - - 修复动态调参后 `ADMIN ALTER DDL JOBS` 显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) - - 修复通过事务加索引时 GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复当触发 `Out Of Quota For Local Temporary Space` 错误时,落盘文件可能未被全部删除的问题 [#63216](https://github.com/pingcap/tidb/issues/63216) @[xzhangxian1008](https://github.com/xzhangxian1008) + - 修复使用正则表达式查询 `INFORMATION_SCHEMA` 表时,结果不正确的问题 [#62347](https://github.com/pingcap/tidb/issues/62347) @[River2000i](https://github.com/River2000i) + - 修复从 PD 获取时间戳异常时,没有返回错误的问题 [#58871](https://github.com/pingcap/tidb/issues/58871) @[joechenrh](https://github.com/joechenrh) + - 修复在执行 `MODIFY COLUMN` 操作时,owner TiDB 与非 owner TiDB 查询结果不一致的问题 [#60264](https://github.com/pingcap/tidb/issues/60264) @[tangenta](https://github.com/tangenta) + - 修复动态调参后,`ADMIN ALTER DDL JOBS` 显示参数不正确的问题 [#63201](https://github.com/pingcap/tidb/issues/63201) @[fzzf678](https://github.com/fzzf678) + - 修复通过事务加索引时,GC savepoint 不推进的问题 [#62424](https://github.com/pingcap/tidb/issues/62424) @[wjhuang2016](https://github.com/wjhuang2016) - 修复过大的 SST 文件 Ingest 到 L0 中导致流控的问题 [#63466](https://github.com/pingcap/tidb/issues/63466) @[CbcWestwolf](https://github.com/CbcWestwolf) - - 修复当 CPU 和内存比例为 1:2 时阻塞全局排序的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) - - 修复超过 16 个分布式执行框架 (Distributed eXecution Framework, DXF) 任务上限时无法取消 Pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) + - 修复当 CPU 和内存比例为 1:2 时,阻塞全局排序的问题 [#60951](https://github.com/pingcap/tidb/issues/60951) @[wjhuang2016](https://github.com/wjhuang2016) + - 修复超过 16 个分布式执行框架 (Distributed eXecution Framework, DXF) 任务上限时,无法取消 Pending 任务的问题 [#63896](https://github.com/pingcap/tidb/issues/63896) @[D3Hunter](https://github.com/D3Hunter) - 修复取消 DXF 任务后,其他任务无法退出的问题 [#63927](https://github.com/pingcap/tidb/issues/63927) @[D3Hunter](https://github.com/D3Hunter) - 修复开启 `Apply` 算子并发后 (`tidb_enable_parallel_apply = on`),由于缺少实现 Clone 导致计划生成失败的问题 [#59863](https://github.com/pingcap/tidb/issues/59863) @[hawkingrei](https://github.com/hawkingrei) - 修复查询使用 `ATAN2` 函数可能导致结果错误的问题 [#60093](https://github.com/pingcap/tidb/issues/60093) @[guo-shaoge](https://github.com/guo-shaoge) - 修复 `select 1 from duml` 无法使用实例级别的计划缓存的问题 [#63075](https://github.com/pingcap/tidb/issues/63075) @[time-and-fate](https://github.com/time-and-fate) - 修复 Join Order 变更顺序后可能导致无法规划的问题 [#61715](https://github.com/pingcap/tidb/issues/61715) @[hawkingrei](https://github.com/hawkingrei) - - 修复 `set_var` Hint 使用 Binding 导致无法恢复回原始变量设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) + - 修复 `set_var` Hint 使用 Binding 导致无法恢复为原始变量设置的问题 [#59822](https://github.com/pingcap/tidb/issues/59822) @[wddevries](https://github.com/wddevries) - 修复 `ONLY_FULL_GROUP_BY` 取值为负数时导致检查失败的问题 [#62617](https://github.com/pingcap/tidb/issues/62617) @[AilinKid](https://github.com/AilinKid) - - 修复 `ONLY_FULL_GROUP_BY` 检查时大小写不敏感的问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) + - 修复 `ONLY_FULL_GROUP_BY` 检查大小写不敏感的问题 [#62672](https://github.com/pingcap/tidb/issues/62672) @[AilinKid](https://github.com/AilinKid) - 修复 DP Join Order 算法可能产生错误 Plan 的问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - 修复 Outer Join 改写为 Inner Join 可能出错的问题 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) - - 修复查询执行可能导致内部 panic 的问题 [#58600](https://github.com/pingcap/tidb/issues/58600) @[Defined2014](https://github.com/Defined2014) + - 修复执行查询可能导致内部 panic 的问题 [#58600](https://github.com/pingcap/tidb/issues/58600) @[Defined2014](https://github.com/Defined2014) - 修复全局索引在某些 `ALTER PARTITION` 状态下获取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) - 修复全局索引在某些情况下返回错误结果的问题 [#61083](https://github.com/pingcap/tidb/issues/61083) @[Defined2014](https://github.com/Defined2014) - - 修复 `character_set_results` 在遇到错误字符时进行截断而不是进行替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) + - 修复 `character_set_results` 在遇到错误字符时进行截断而非替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) @@ -131,8 +131,8 @@ TiDB 版本:8.5.4 - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - 修复 TiFlash 消耗 RU 的统计数据不准确的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - - 修复在存算分离架构下,在存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 修复在存算分离架构下,TiFlash 遇到与 S3 网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复在存算分离架构下,当存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) + - 修复在存算分离架构下,TiFlash 遇到与 S3 的网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) - 修复当参数为 `DECIMAL` 类型时,`FLOOR()` 和 `CEIL()` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tiflash/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + Tools From 338cae9e0d8dbdea60c9fa1eebac0fb7103693b3 Mon Sep 17 00:00:00 2001 From: Lilian Lee Date: Wed, 5 Nov 2025 13:46:29 +0800 Subject: [PATCH 53/64] Apply suggestions from code review --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 6050c5e859c0..b329b7640ffa 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -110,7 +110,7 @@ TiDB 版本:8.5.4 - 修复 DP Join Order 算法可能产生错误 Plan 的问题 [#63353](https://github.com/pingcap/tidb/issues/63353) @[winoros](https://github.com/winoros) - 修复 Outer Join 改写为 Inner Join 可能出错的问题 [#61327](https://github.com/pingcap/tidb/issues/61327) @[hawkingrei](https://github.com/hawkingrei) - 修复执行查询可能导致内部 panic 的问题 [#58600](https://github.com/pingcap/tidb/issues/58600) @[Defined2014](https://github.com/Defined2014) - - 修复全局索引在某些 `ALTER PARTITION` 状态下获取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) + - 修复全局索引在某些 `ALTER PARTITION` 操作期间可能读取错误数据的问题 [#64084](https://github.com/pingcap/tidb/pull/64084) @[mjonss](https://github.com/mjonss) - 修复全局索引在某些情况下返回错误结果的问题 [#61083](https://github.com/pingcap/tidb/issues/61083) @[Defined2014](https://github.com/Defined2014) - 修复 `character_set_results` 在遇到错误字符时进行截断而非替换的问题 [#61085](https://github.com/pingcap/tidb/issues/61085) @[xhebox](https://github.com/xhebox) - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) From 528d5dce0b2da34f59f18aca6cc3f80b1bce3f17 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Wed, 5 Nov 2025 13:53:41 +0800 Subject: [PATCH 54/64] Update format --- releases/release-8.5.4.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index b329b7640ffa..d9ba24d3532f 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -116,7 +116,6 @@ TiDB 版本:8.5.4 - 修复 `ADD COLUMN` 与 `UPDATE` 并发执行时出错的问题 [#60047](https://github.com/pingcap/tidb/issues/60047) @[L-maple](https://github.com/L-maple) - 修复 Merge Join 在计算成本时可能遗漏过滤条件的问题 [#62917](https://github.com/pingcap/tidb/issues/62917) @[qw4990](https://github.com/qw4990) - + PD - 修复 PD Client 重试策略未正确初始化的问题 [#9013](https://github.com/tikv/pd/issues/9013) @[rleungx](https://github.com/rleungx) @@ -133,7 +132,7 @@ TiDB 版本:8.5.4 - 修复 TiFlash 消耗 RU 的统计数据不准确的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - 修复在存算分离架构下,当存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) - 修复在存算分离架构下,TiFlash 遇到与 S3 的网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) - - 修复当参数为 `DECIMAL` 类型时,`FLOOR()` 和 `CEIL()` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tiflash/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + - 修复当参数为 `DECIMAL` 类型时,`FLOOR()` 和 `CEIL()` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tiflash/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) + Tools From a1379c8bb97e9177c2ea73c047af32c46bfcff5c Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 6 Nov 2025 13:40:26 +0800 Subject: [PATCH 55/64] add ticdc new architecture --- releases/release-8.5.4.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index d9ba24d3532f..f1209a31f228 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -81,6 +81,18 @@ TiDB 版本:8.5.4 - 获取上游 `GTID_MODE` 时,支持兼容大小写 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) ++ TiCDC + + - 引入 [TiCDC 新架构],显著提升性能、可扩展性和稳定性 (/ticdc/ticdc-architecture.md) [#442](https://github.com/pingcap/ticdc/issues/442) @[CharlesCheung96](https://github.com/CharlesCheung96) + + 新架构在完全兼容 [TiCDC 老架构](/ticdc/ticdc-classic-architecture)的配置项、使用方式和 API 的基础上,对 TiCDC 核心组件与数据处理流程进行了重构与优化。 + + 使用新架构时,TiCDC 同步能力接近线性扩展,并能以更低的资源成本完成百万级表的同步任务。在高写入负载、频繁 DDL 操作以及集群扩缩容的场景下,Changefeed 的延迟更低且更加稳定。需要注意的是,该新架构目前存在一些[使用限制](/ticdc/ticdc-architecture.md#limitations)。 + + 如需启用新架构,可将 TiCDC 配置项 [`newarch`](/ticdc/ticdc-server-config.md#newarch-new-in-v854-release1) 设置为 `true`。 + + 更多信息,请参考[用户文档](/ticdc/ticdc-architecture.md)。 + ## 错误修复 + TiDB From a775ba0828c1290c66f38b7458c46b494913cffe Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 6 Nov 2025 13:41:07 +0800 Subject: [PATCH 56/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index f1209a31f228..15c91c58e317 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -81,7 +81,7 @@ TiDB 版本:8.5.4 - 获取上游 `GTID_MODE` 时,支持兼容大小写 [#12167](https://github.com/pingcap/tiflow/issues/12167) @[OliverS929](https://github.com/OliverS929) -+ TiCDC + + TiCDC - 引入 [TiCDC 新架构],显著提升性能、可扩展性和稳定性 (/ticdc/ticdc-architecture.md) [#442](https://github.com/pingcap/ticdc/issues/442) @[CharlesCheung96](https://github.com/CharlesCheung96) From 121cb356ce41e98ed7055cd2e074ae582985179f Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 6 Nov 2025 13:41:57 +0800 Subject: [PATCH 57/64] fix a format issue --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 15c91c58e317..36fbb0b29844 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -83,7 +83,7 @@ TiDB 版本:8.5.4 + TiCDC - - 引入 [TiCDC 新架构],显著提升性能、可扩展性和稳定性 (/ticdc/ticdc-architecture.md) [#442](https://github.com/pingcap/ticdc/issues/442) @[CharlesCheung96](https://github.com/CharlesCheung96) + - 引入 [TiCDC 新架构](/ticdc/ticdc-architecture.md),显著提升性能、可扩展性和稳定性 [#442](https://github.com/pingcap/ticdc/issues/442) @[CharlesCheung96](https://github.com/CharlesCheung96) 新架构在完全兼容 [TiCDC 老架构](/ticdc/ticdc-classic-architecture)的配置项、使用方式和 API 的基础上,对 TiCDC 核心组件与数据处理流程进行了重构与优化。 From 313821fe440362e24b3e7552a98d4455a8c3ad6e Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Thu, 6 Nov 2025 13:46:37 +0800 Subject: [PATCH 58/64] Update releases/release-8.5.4.md Co-authored-by: JaySon --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 36fbb0b29844..d97c31b19e53 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -141,7 +141,7 @@ TiDB 版本:8.5.4 + TiFlash - 修复当查询的列存储大量 `NULL` 值时,可能导致查询失败的问题 [#10340](https://github.com/pingcap/tiflash/issues/10340) @[Lloyd-Pottiger](https://github.com/Lloyd-Pottiger) - - 修复 TiFlash 消耗 RU 的统计数据不准确的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) + - 修复 TiFlash 消耗 RU 的统计数据偏高的问题 [#10380](https://github.com/pingcap/tiflash/issues/10380) @[JinheLin](https://github.com/JinheLin) - 修复在存算分离架构下,当存在慢查询时 TiFlash 容易发生 OOM 的问题 [#10278](https://github.com/pingcap/tiflash/issues/10278) @[JaySon-Huang](https://github.com/JaySon-Huang) - 修复在存算分离架构下,TiFlash 遇到与 S3 的网络分区时可能无限重试的问题 [#10424](https://github.com/pingcap/tiflash/issues/10424) @[JaySon-Huang](https://github.com/JaySon-Huang) - 修复当参数为 `DECIMAL` 类型时,`FLOOR()` 和 `CEIL()` 函数结果可能不正确的问题 [#10365](https://github.com/pingcap/tiflash/issues/10365) @[ChangRui-Ryan](https://github.com/ChangRui-Ryan) From 4eea8fa2434afc497190b7588abc32d130d5bb59 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Thu, 6 Nov 2025 14:12:35 +0800 Subject: [PATCH 59/64] remove tidb_enable_binding_usage --- releases/release-8.5.4.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index d97c31b19e53..522faf5d3539 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -21,7 +21,6 @@ TiDB 版本:8.5.4 - 新增以下系统变量: - - [`tidb_enable_binding_usage`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_enable_binding_usage-从-v854-版本开始引入):控制是否收集 SQL 执行计划绑定的使用统计信息,默认值为 `OFF` [#63407](https://github.com/pingcap/tidb/issues/63407) @[hawkingrei](https://github.com/hawkingrei) - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作,默认值为 `OFF` [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询,默认值为 `OFF` [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为,默认值为 `OFF` [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) @@ -40,7 +39,6 @@ TiDB 版本:8.5.4 + TiDB - 支持表级别数据打散(实验特性):你可以通过 [`SHOW TABLE DISTRIBUTION`](/sql-statements/sql-statement-show-distribution-jobs.md) 语句查看某张表在集群中所有 TiKV 节点上的数据分布情况。如果存在数据分布不均衡,可以通过 [`DISTRIBUTE TABLE`](/sql-statements/sql-statement-distribute-table.md) 语句对该表进行数据打散,以提升负载均衡性 [#63260](https://github.com/pingcap/tidb/issues/63260) @[bufferflies](https://github.com/bufferflies) - - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) From ac7c68f071cc735810e4cb9af09b3753dafb77cb Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 11 Nov 2025 15:51:24 +0800 Subject: [PATCH 60/64] add analyze embedded in DDL --- releases/release-8.5.4.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 522faf5d3539..21c03dd93440 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -34,11 +34,16 @@ TiDB 版本:8.5.4 - 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间,默认值为 `600` 秒。在此期间,TiFlash 允许尚未完成的 MPP 任务继续执行,但不再接收新的 MPP 任务。如果所有正在运行的 MPP 任务都在此超时时间之前完成,TiFlash 将立即关闭;否则将在等待时间结束后强制关闭。 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) +### MySQL 兼容性 + +从 v8.5.4 开始,当写入 `DECIMAL` 类型的数据时,TiDB 的行为和 MySQL 保持一致:如果小数位数超过字段定义的小数位数,无论超出多少,TiDB 都会自动截断多余的位数并成功插入。在之前的 TiDB 版本中,如果写入的 `DECIMAL` 类型数据的小数位数超过 72 位,写入会失败并报错。更多信息,请参考[使用 JDBC 连接到 TiDB](/develop/dev-guide-sample-application-java-jdbc.md#mysql-兼容性)。 + ## 改进提升 + TiDB - 支持表级别数据打散(实验特性):你可以通过 [`SHOW TABLE DISTRIBUTION`](/sql-statements/sql-statement-show-distribution-jobs.md) 语句查看某张表在集群中所有 TiKV 节点上的数据分布情况。如果存在数据分布不均衡,可以通过 [`DISTRIBUTE TABLE`](/sql-statements/sql-statement-distribute-table.md) 语句对该表进行数据打散,以提升负载均衡性 [#63260](https://github.com/pingcap/tidb/issues/63260) @[bufferflies](https://github.com/bufferflies) + - 支持[内嵌于 DDL 的 Analyze](/ddl_embedded_analyze.md) 特性,以避免新建或重组索引后因统计信息暂不可用而导致优化器估算不准,从而引起执行计划变更的问题 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) From 8ab36c1c25f1c7356f6e8914d0ebf360df3617e7 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 12 Nov 2025 10:29:00 +0800 Subject: [PATCH 61/64] fix the format issue of variable links --- releases/release-8.5.4.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 21c03dd93440..24121adaab0c 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -15,15 +15,15 @@ TiDB 版本:8.5.4 ### 系统变量 -- 系统变量 [`tidb_mpp_store_fail_ttl`](/system-variables.md#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) +- 系统变量 [`tidb_mpp_store_fail_ttl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) -- 系统变量 [`tidb_replica_read`](/system-variables.md#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) +- 系统变量 [`tidb_replica_read`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) - 新增以下系统变量: - - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作,默认值为 `OFF` [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) - - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询,默认值为 `OFF` [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) - - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables.md#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为,默认值为 `OFF` [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) + - [`tidb_opt_enable_no_decorrelate_in_select`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_opt_enable_no_decorrelate_in_select-从-v854-版本开始引入):控制是否对 `SELECT` 列表中的子查询进行解关联操作,默认值为 `OFF` [#51116](https://github.com/pingcap/tidb/issues/51116) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_opt_enable_semi_join_rewrite`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_opt_enable_semi_join_rewrite-从-v854-版本开始引入):控制是否改写 `EXISTS` 子查询,默认值为 `OFF` [#44850](https://github.com/pingcap/tidb/issues/44850) @[terry1purcell](https://github.com/terry1purcell) + - [`tidb_stats_update_during_ddl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_stats_update_during_ddl-从-v854-版本开始引入):控制是否开启 DDL 的内嵌 Analyze 的行为,默认值为 `OFF` [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) ### 配置参数 From bd0cd5a55f0c895dc43948c73259d3fe9b9503a0 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 12 Nov 2025 10:37:01 +0800 Subject: [PATCH 62/64] fix the format issue of variable links --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 24121adaab0c..44b0bf08c97e 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -36,7 +36,7 @@ TiDB 版本:8.5.4 ### MySQL 兼容性 -从 v8.5.4 开始,当写入 `DECIMAL` 类型的数据时,TiDB 的行为和 MySQL 保持一致:如果小数位数超过字段定义的小数位数,无论超出多少,TiDB 都会自动截断多余的位数并成功插入。在之前的 TiDB 版本中,如果写入的 `DECIMAL` 类型数据的小数位数超过 72 位,写入会失败并报错。更多信息,请参考[使用 JDBC 连接到 TiDB](/develop/dev-guide-sample-application-java-jdbc.md#mysql-兼容性)。 +从 v8.5.4 开始,当写入 `DECIMAL` 类型的数据时,TiDB 的行为和 MySQL 保持一致:如果小数位数超过字段定义的小数位数,无论超出多少,TiDB 都会自动截断多余的位数并成功插入。在之前的 TiDB 版本中,如果写入的 `DECIMAL` 类型数据的小数位数超过 72 位,写入会失败并报错。更多信息,请参考[使用 JDBC 连接到 TiDB](https://docs.pingcap.com/zh/tidb/v8.5/dev-guide-sample-application-java-jdbc/#mysql-兼容性)。 ## 改进提升 From 1a5dd359ee215ef8853e603f7885cb21c7079b26 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 12 Nov 2025 11:06:01 +0800 Subject: [PATCH 63/64] Apply suggestions from code review --- releases/release-8.5.4.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 44b0bf08c97e..701403795b3c 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -15,9 +15,9 @@ TiDB 版本:8.5.4 ### 系统变量 -- 系统变量 [`tidb_mpp_store_fail_ttl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) +- 系统变量 [`tidb_mpp_store_fail_ttl`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_mpp_store_fail_ttl) 默认值从 `60s` 修改为 `0s`,意味着 TiDB 不再需要额外等待即可向新启动的 TiFlash 节点发送查询请求,无需再通过延迟来避免查询失败 [#61826](https://github.com/pingcap/tidb/issues/61826) @[gengliqi](https://github.com/gengliqi) -- 系统变量 [`tidb_replica_read`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) +- 系统变量 [`tidb_replica_read`](https://docs.pingcap.com/zh/tidb/v8.5/system-variables/#tidb_replica_read-从-v40-版本开始引入) 从 v8.5.4 开始仅对只读 SQL 语句生效,以提高数据读取的安全性并减少与其他功能的重叠 [#62856](https://github.com/pingcap/tidb/issues/62856) @[you06](https://github.com/you06) - 新增以下系统变量: @@ -32,7 +32,7 @@ TiDB 版本:8.5.4 - 废弃配置项:[`region-compact-check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-interval)、[`region-compact-check-step`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-check-step)、[`region-compact-min-tombstones`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-tombstones)、[`region-compact-tombstones-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-tombstones-percent)、[`region-compact-min-redundant-rows`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-min-redundant-rows-从-v710-版本开始引入) 和 [`region-compact-redundant-rows-percent`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#region-compact-redundant-rows-percent-从-v710-版本开始引入)。 - 新增配置项:[`gc.auto-compaction.check-interval`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#check-interval-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-num-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-num-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.tombstone-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#tombstone-percent-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-threshold-从-v757-和-v854-版本开始引入)、[`gc.auto-compaction.redundant-rows-percent-threshold`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#redundant-rows-percent-threshold-从-v757-和-v854-版本开始引入) 和 [`gc.auto-compaction.bottommost-level-force`](https://docs.pingcap.com/zh/tidb/v8.5/tikv-configuration-file#bottommost-level-force-从-v757-和-v854-版本开始引入)。 -- 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间,默认值为 `600` 秒。在此期间,TiFlash 允许尚未完成的 MPP 任务继续执行,但不再接收新的 MPP 任务。如果所有正在运行的 MPP 任务都在此超时时间之前完成,TiFlash 将立即关闭;否则将在等待时间结束后强制关闭。 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) +- 新增 TiFlash 配置项 [`graceful_wait_shutdown_timeout`](https://docs.pingcap.com/zh/tidb/v8.5/tiflash-configuration#graceful_wait_shutdown_timeout-从-v854-版本开始引入),用于控制在关闭 TiFlash 服务器时的最长等待时间,默认值为 `600` 秒。在此期间,TiFlash 允许尚未完成的 MPP 任务继续执行,但不再接收新的 MPP 任务。如果所有正在运行的 MPP 任务都在此超时时间之前完成,TiFlash 将立即关闭;否则将在等待时间结束后强制关闭。 [#10266](https://github.com/pingcap/tiflash/issues/10266) @[gengliqi](https://github.com/gengliqi) ### MySQL 兼容性 From b16fa292001948163ffbe76e6e23d851c37e9448 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Wed, 12 Nov 2025 11:06:14 +0800 Subject: [PATCH 64/64] Update releases/release-8.5.4.md --- releases/release-8.5.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releases/release-8.5.4.md b/releases/release-8.5.4.md index 701403795b3c..b58e3422d270 100644 --- a/releases/release-8.5.4.md +++ b/releases/release-8.5.4.md @@ -44,7 +44,7 @@ TiDB 版本:8.5.4 - 支持表级别数据打散(实验特性):你可以通过 [`SHOW TABLE DISTRIBUTION`](/sql-statements/sql-statement-show-distribution-jobs.md) 语句查看某张表在集群中所有 TiKV 节点上的数据分布情况。如果存在数据分布不均衡,可以通过 [`DISTRIBUTE TABLE`](/sql-statements/sql-statement-distribute-table.md) 语句对该表进行数据打散,以提升负载均衡性 [#63260](https://github.com/pingcap/tidb/issues/63260) @[bufferflies](https://github.com/bufferflies) - 支持[内嵌于 DDL 的 Analyze](/ddl_embedded_analyze.md) 特性,以避免新建或重组索引后因统计信息暂不可用而导致优化器估算不准,从而引起执行计划变更的问题 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell) @[AilinKid](https://github.com/AilinKid) - - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) + - (dup): release-9.0.0.md(beta.1) > # SQL 功能 - 支持对分区表的非唯一列创建[全局索引](/partitioned-table.md#全局索引),以提升全局索引的易用性 [#58650](https://github.com/pingcap/tidb/issues/58650) @[Defined2014](https://github.com/Defined2014) @[mjonss](https://github.com/mjonss) - (dup): release-9.0.0.md(beta.1) > 改进提升> TiDB - 支持由 `IN` 子查询而来的 Semi Join 使用 `semi_join_rewrite` 的 Hint [#58829](https://github.com/pingcap/tidb/issues/58829) @[qw4990](https://github.com/qw4990) - 优化系统变量 `tidb_opt_ordering_index_selectivity_ratio` 生效时的估算策略 [#62817](https://github.com/pingcap/tidb/issues/62817) @[terry1purcell](https://github.com/terry1purcell) - 调整优化器的选择逻辑,使新创建的索引在某些情况下更容易被选中 [#57948](https://github.com/pingcap/tidb/issues/57948) @[terry1purcell](https://github.com/terry1purcell)