Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

releases: add tidb 5.0.4 release notes #7112

Merged
merged 11 commits into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@
- [5.1.1](/releases/release-5.1.1.md)
- [5.1.0](/releases/release-5.1.0.md)
+ v5.0
- [5.0.4](/releases/release-5.0.4.md)
- [5.0.3](/releases/release-5.0.3.md)
- [5.0.2](/releases/release-5.0.2.md)
- [5.0.1](/releases/release-5.0.1.md)
Expand Down
83 changes: 83 additions & 0 deletions releases/release-5.0.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
title: TiDB 5.0.4 Release Notes
---

# TiDB 5.0.4 Release Notes

发版日期:2021 年 9 月 27 日

TiDB 版本:5.0.4

## 兼容性更改

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
## 功能增强

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
+ TiKV

- 支持动态修改 CDC 配置 [#10685](https://github.com/tikv/tikv/pull/10685)

+ TiFlash

- 支持 `HAVING()` 函数
- 支持 `DATE()` 函数
- 为 Grafana 面板增加每个实例的写入吞吐

## 提升改进

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
+ TiKV

- 读写 Ready 操作分离处理以减少读操作时延。 [#10620](https://github.com/tikv/tikv/pull/10620)
- 减少 resolved ts 消息大小以节省网络带宽。 [#10678](https://github.com/tikv/tikv/pull/10678)
- 当 slogger 线程过载且队列已满时,删除日志而不是阻塞线程。 [#10864](https://github.com/tikv/tikv/pull/10864)
- 慢日志只考虑处理请求所花费的时间。[#10864](https://github.com/tikv/tikv/pull/10864)
- 使预写尽可能具有幂等性,以减少出现未确定错误的机会。 [#10587](https://github.com/tikv/tikv/pull/10587)
- 避免在低写入流量下出现错误的“GC 无法工作”警报。 [#10662](https://github.com/tikv/tikv/pull/10662)
- 从 BR 或 Lightning 本地后端恢复的数据库现在更小,备份时应与原始集群大小匹配。 [#10643](https://github.com/tikv/tikv/pull/10643)
- 确保 Panic 信息刷新到日志 [#10487](https://github.com/tikv/tikv/pull/10487)

+ PD

- 在 placement rule 开启时并且 Region 拥有 down/pending 副本时,PD 会保证留下健康副本[#4073](https://github.com/tikv/pd/pull/4073)
- PD 会动态调整调度计算重试次数,避免消耗过量 CPU 资源[#4047](https://github.com/tikv/pd/pull/4047)
- 提升了 PD 之间 region 同步的性能 [#3993](https://github.com/tikv/pd/pull/3993)
- 出于安全考虑,PD persist-api 只会接收 json 文件 [#3969](https://github.com/tikv/pd/pull/3969)
- 提升了热点调度计算时的性能 [#3910](https://github.com/tikv/pd/pull/3910)

## Bug 修复
Copy link
Contributor

@Little-Wallace Little-Wallace Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Tools

    + Dumpling
             - 修复对 mysql-8.0.3 或更高版本执行 `show table status` 卡住的问题。
             - 支持 MemSQL/SingleStore 的 `WITH CONSISTENT SNAPSHOT` 和 `SHOW CREATE DATABASE` 语法。
       
     + TiCDC
    
             - 修复将 `mysql.TypeString, mysql.TypeVarString, mysql.TypeVarchar` 等类型的数据编码为 json 时进程崩溃的 Bug。 [#2782](https://github.com/pingcap/ticdc/pull/2782)
             - 修复表重新调度时多个流写同一张表引发的数据不一致 Bug。 [#2728](https://github.com/pingcap/ticdc/pull/2728)
             - 降低 gRPC 窗口大小来避免 Region 数量过多时触发 OOM。  [#2724](https://github.com/pingcap/ticdc/pull/2724)
             - 修复内存压力大时 gRPC 连接频繁断开的错误。 [#2719](https://github.com/pingcap/ticdc/pull/2719)
             - 优化内存排序后端的内存回收效率。 [#2711](https://github.com/pingcap/ticdc/pull/2711)
             - 修复无符号整数的类型转换错误。 [#2655](https://github.com/pingcap/ticdc/pull/2655)
             - 修复 open protocol 在上游事务插入并删除同一行数据情况下输出空值的问题. [#2620](https://github.com/pingcap/ticdc/pull/2620)
             - 修复表结构变更时创建的流处理 DDL 失败的问题。 [#2610](https://github.com/pingcap/ticdc/pull/2610)
             - 修复执行缓慢的 DDL 阻塞其他流复制数据的问题。[#2605](https://github.com/pingcap/ticdc/pull/2605)
             - 禁止使用不同的版本启动 TiCDC 节点。 [#2598](https://github.com/pingcap/ticdc/pull/2598)
             - 修复元信息管理问题。 [#2558](https://github.com/pingcap/ticdc/pull/2558)
             - 为所有 KV 客户端创建全局共享的 gRPC 连接池。 [#2533](https://github.com/pingcap/ticdc/pull/2533)
             - 修复 sink Close 不正确导致多个节点写同一张表的 Bug。 [#2492](https://github.com/pingcap/ticdc/pull/2492)
             - 降低了 workerpool 中创建 goroutine 的数量. [#2487](https://github.com/pingcap/ticdc/pull/2487)
             - 修复 capture list 命令中出现已经关闭的 capture 的 Bug。 [#2466](https://github.com/pingcap/ticdc/pull/2466)
             - 修复集成测试中遇到的由于 DDL Job 重复导致的 ErrSchemaStorageTableMiss 错误. [#2458](https://github.com/pingcap/ticdc/pull/2458)
             - 修复遇到 ErrGCTTLExceeded 错误时 changefeed 无法删除的 Bug。 [#2456](https://github.com/pingcap/ticdc/pull/2456)
             - 修复同步大数据量表到 cdclog 失败的 Bug。 [#2445](https://github.com/pingcap/ticdc/pull/2445)
             - 修复客户端向后兼容。 [#2413](https://github.com/pingcap/ticdc/pull/2413)
             - 修复 Region 从某个 TiKV 节点全部迁移走时,回收其对应的 CDC worker 的 goroutine 资源 [#2377](https://github.com/pingcap/ticdc/pull/2377)
             - 删除已经不再维护的 FileSorter 代码。 [#2326](https://github.com/pingcap/ticdc/pull/2326)
             - 默认从 TiKV 获取行变更的历史值(old-value),输出会根据 enable-old-value 配置进行调整。 [#2305](https://github.com/pingcap/ticdc/pull/2305)
             - 修复 SinkManager 中对 map 的不安全并发访问。 [#2299](https://github.com/pingcap/ticdc/pull/2299)
             - 修复 owner 在执行 DDL 时崩溃可能导致的潜在的 DDL 任务丢失的 Bug。[#2292](https://github.com/pingcap/ticdc/pull/2292)
            - 修复在 region 刚初始化时立刻执行 resolve lock 的问题。 [#2265](https://github.com/pingcap/ticdc/pull/2265)
            - 修复创建新的分区表时部分分区被重复分发。 [#2263](https://github.com/pingcap/ticdc/pull/2263)
           - 优化 PD 缺失证书时的报错信息。 [#2185](https://github.com/pingcap/ticdc/pull/2185)
           - 当任务结束时清除 changefeed 和 processor 的监控指标。 [#2177](https://github.com/pingcap/ticdc/pull/2177)
    

Copy link
Contributor

@amyangfei amyangfei Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/即便用户没有配置,仍然上传 old-value 到 CDC 节点。/ 默认从 TiKV 获取行变更的历史值(old-value),输出会根据 enable-old-value 配置进行调整

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 修复当一张表的状态从不合法变更为合法时,数据没有被 CDC 复制的 Bug。 #1488

这个没合并,需要去掉

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
+ TiKV

- 修复快照 GC 过程中可能遗留快照文件的问题。 [#10872](https://github.com/tikv/tikv/pull/10872)
- 修复 TiKV 在启用 Titan 并从 pre-5.0 版本升级时出现的 Panic 问题。 [#10843](https://github.com/tikv/tikv/pull/10843)
- 修复高版本 TiKV 无法回滚到 5.0.x 的问题。 [#10843](https://github.com/tikv/tikv/pull/10843)
- 修复了启用 Titan 并从 < 5.0 版本升级到 >= 5.0 版本时 TiKV 崩溃的问题(如果集群从 TiKV 3.x 升级并在升级之前启用了 Titan,则该集群可能会遇到问题)。 [#10778](https://github.com/tikv/tikv/pull/10778)
- 修复遗留的悲观锁导致的解析失败问题。 [#10654](https://github.com/tikv/tikv/pull/10654)
- 修复某些平台上时间间隔计算 Panic 问题。 [#10571](https://github.com/tikv/tikv/pull/10571)
- 修复 load-base-split 中`batch_get_command` 的键值未编码问题。 [#10564](https://github.com/tikv/tikv/pull/10564)

+ PD

- 修复了 PD 无法及时修复 down peer 副本的问题 [#4082](https://github.com/tikv/pd/pull/4082)
- 修复了 PD 在热点调度时没有考虑驱逐 leader 的 Store 的情况 [#3975](https://github.com/tikv/pd/pull/3975)
- 修复了 PD 在热点调度中的错误统计 [#3964](https://github.com/tikv/pd/pull/3964)
- 修复了 PD placement rule 在相关配置更改后没有及时更新的问题 [#3914](https://github.com/tikv/pd/pull/3914)
- 修复了 PD 在产生调度时计算出错误的 store limit 使用情况从而无法调度 [#3856](https://github.com/tikv/pd/pull/3856)
- 修复了 PD 调度器在修改失败时没有及时报错的问题 [#3823](https://github.com/tikv/pd/pull/3823)

+ TiFlash

- 修复执行扫表任务时潜在的进程崩溃问题
- 修复执行 `MPP` 任务时潜在的内存泄漏问题
- 修复处理 DAG 请求时出现 `duplicated region` 报错的问题
- 修复执行 `COUNT` 或 `COUNT DISTINCT` 函数时出现非预期结果的问题
- 修复执行 `MPP` 任务时潜在的进程崩溃问题
- 修复 TiFlash 多盘部署时无法恢复数据的潜在问题
- 修复析构 `SharedQueryBlockInputStream` 时出现进程崩溃的潜在问题
- 修复析构 `MPPTask` 时出现进程崩溃的潜在问题
- 修复 TiFlash 无法建立 MPP 连接时出现非预期结果的问题
- 修复解决锁时潜在的进程崩溃问题
- 修复写压力重时 metrics 中 store size 不准确的问题
- 修复当查询过滤条件包含诸如 `CONSTANT` `<` | `<=` | `>` | `>=` `COLUMN` 时出现错误结果的问题
- 修复 TiFlash 长时间运行后无法回收 delta 数据的潜在问题
- 修复 metrics 显示错误数值的潜在问题
- 修复多盘部署时数据不一致的潜在问题
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ TiDB 历史版本发布声明如下:

## 5.0

- [5.0.4](/releases/release-5.0.4.md)
- [5.0.3](/releases/release-5.0.3.md)
- [5.0.2](/releases/release-5.0.2.md)
- [5.0.1](/releases/release-5.0.1.md)
Expand Down