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

release: add tidb 4.0.10 release notes #5304

Merged
merged 13 commits into from
Jan 15, 2021
1 change: 1 addition & 0 deletions TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@
+ v5.0
- [5.0.0-rc](/releases/release-5.0.0-rc.md)
+ v4.0
- [4.0.10](/releases/release-4.0.10.md)
- [4.0.9](/releases/release-4.0.9.md)
- [4.0.8](/releases/release-4.0.8.md)
- [4.0.7](/releases/release-4.0.7.md)
Expand Down
92 changes: 92 additions & 0 deletions releases/release-4.0.10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: TiDB 4.0.10 Release Notes
---

# TiDB 4.0.10 Release Notes

发版日期:2021 年 1 月 15 日

TiDB 版本:4.0.10

## 新功能

+ TiFlash

- 添加了配置项 `security.redact_info_log`,可以设置将日志中的用户数据脱敏,例如把具体的值替换为 `?`

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
+ TiDB

- 添加 `txn-entry-size-limit` 配置项,用于限制事务中单个 key-value 记录的大小 [#21843](https://github.com/pingcap/tidb/pull/21843)

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

+ TiCDC

- 为 `maxwell` 协议默认开启 old value 特性 [#1144](https://github.com/pingcap/ticdc/pull/1144)
- 默认启用 unified sorter 特性 [#1230](https://github.com/pingcap/ticdc/pull/1230)

+ Dumpling

- 支持检查为定义的参数,支持输出导出的进度 [#228](https://github.com/pingcap/dumpling/pull/228)

+ TiDB Lightning

- 支持重试读 S3 遇到的错误 [#533](https://github.com/pingcap/tidb-lightning/pull/533)

## Bug 修复

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

- 修复由于并发导致的 batch client 超时问题 [#22336](https://github.com/pingcap/tidb/pull/22336)
- 修复由于并发地自动捕获 SQL 绑定而导致的重复绑定问题 [#22295](https://github.com/pingcap/tidb/pull/22295)
- 当日志级别为 `'debug'` 时,让 SQL 语句绑定的自动捕获正确运行 [#22293](https://github.com/pingcap/tidb/pull/22293)
- 当 Region 合并正在发生时,正确地释放锁 [#22267](https://github.com/pingcap/tidb/pull/22267)
- 对 `Datetime` 类型的用户变量返回正确的值 [#22143](https://github.com/pingcap/tidb/pull/22143)
- 修复错误使用 Index Merge 访问方式的问题 [#22124](https://github.com/pingcap/tidb/pull/22124)
- 修复由于执行计划缓存导致 TiFlash 报 `wrong precision` 错误的问题 [#21960](https://github.com/pingcap/tidb/pull/21960)
- 修复由于 schema 变更导致的错误结果 [#21596](https://github.com/pingcap/tidb/pull/21596)
- 避免在 `ALTER TABLE` 中不必要的 column flag 更改 [#21474](https://github.com/pingcap/tidb/pull/21474)
- 让包含子查询块别名的 optimizer hint 生效 [#21380](https://github.com/pingcap/tidb/pull/21380)
- 为 `IndexHashJoin` 和 `IndexMergeJoin` 生成正确的 optimizer hint [#21020](https://github.com/pingcap/tidb/pull/21020)

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

- 修复了 TiFlash 解析老版本 TiDB 表结构失败导致 TiFlash 无法启动的问题
- 修复了在 RedHat 系统中 TiFlash 会对 `cpu_time` 进行错误处理导致 TiFlash 无法启动的问题
- 修复了将配置项 `path_realtime_mode` 设置为 `true` 时 TiFlash 无法启动的问题
- 修复了当调用三个参数的 `substr` 函数时,返回结果错误的问题
- 修复了当 TiDB 对 `Enum` 枚举进行无损修改时,TiFlash 无法读取修改后的值的问题

+ Tools

+ TiCDC

* 修复 `maxwell` 协议的问题,包括 `base64` 数据输出和将 TSO 转换成 unix timestamp [#1173](https://github.com/pingcap/ticdc/pull/1173)
* 修复过期的元数据可能引发新创建的 changefeed 异常的问题 [#1184](https://github.com/pingcap/ticdc/pull/1184)
* 修复在关闭的 notifier 上创建 receiver [#1199](https://github.com/pingcap/ticdc/pull/1199)
* 修复在 etcd 更新缓慢时导致的内存增长问题 [#1227](https://github.com/pingcap/ticdc/pull/1227)
* 修复 `max-batch-size` 不生效的问题 [#1253](https://github.com/pingcap/ticdc/pull/1253)
* 修复清理过期任务信息的问题 [#1280](https://github.com/pingcap/ticdc/pull/1280)
* 修复 MySQL sink 中由于没有调用 `rollback` 而导致的回收 db conn 卡住的问题 [#1285](https://github.com/pingcap/ticdc/pull/1285)

+ Dumpling

- 修改默认设置的 `tidb_mem_quota_query` 的行为以避免 TiDB 内存溢出 [#233](https://github.com/pingcap/dumpling/pull/233)

+ Backup & Restore (BR)

- 修复 BR v4.0.9 无法恢复 BR v4.0.8 保存在 GCS 上的备份 [#688](https://github.com/pingcap/br/pull/688)
- 修复在恢复 GCS 上的备份时可能发送的 panic 问题 [#673](https://github.com/pingcap/br/pull/673)
- Disable backup stats by default to avoid BR OOM [#693](https://github.com/pingcap/br/pull/693)

+ TiDB Binlog

- 修复在启用 amend txn 时,Drainer 可能会使用错误 schema 来生成 SQL 语句的问题 [#1033](https://github.com/pingcap/tidb-binlog/pull/1033)

+ TiDB Lightning

- 修复未正确编码 Region key 而导致分裂 Region 失败问题 [#531](https://github.com/pingcap/tidb-lightning/pull/531)
- 修复可能丢失 `create table` 失败的错误 [#530](https://github.com/pingcap/tidb-lightning/pull/530)
- 修复使用 TiDB-backend 时遇到的 `column count mismatch` 问题 [#535](https://github.com/pingcap/tidb-lightning/pull/535)
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TiDB 历史版本发布声明如下:

## 4.0

- [4.0.10](/releases/release-4.0.10.md)
- [4.0.9](/releases/release-4.0.9.md)
- [4.0.8](/releases/release-4.0.8.md)
- [4.0.7](/releases/release-4.0.7.md)
Expand Down