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 v4.0.9 release notes #4976

Merged
merged 35 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
275fab6
releases: add v4.0.9 release notes
TomShawn Nov 30, 2020
a6a0ae7
Update TOC.md
TomShawn Nov 30, 2020
9d80f77
add tidb notes
TomShawn Nov 30, 2020
8c3149b
add TiFlash notes
TomShawn Dec 1, 2020
e8814f6
Update release-4.0.9.md
TomShawn Dec 1, 2020
1966d63
add Tools notes
TomShawn Dec 1, 2020
1cd776f
add TiKV notes from BusyJay
TomShawn Dec 1, 2020
825c2a1
add PD notes
TomShawn Dec 2, 2020
da16957
change release date
TomShawn Dec 2, 2020
2376d3f
Update releases/release-4.0.9.md
TomShawn Dec 4, 2020
ce46c6e
refine language and format
TomShawn Dec 11, 2020
bcc7ae6
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
c8642df
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
13ab65c
Merge branch 'master' into 4.0.9-rn
TomShawn Dec 14, 2020
2b9f558
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
9f8645c
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
49a7a19
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
354c5c5
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
c363031
Update release-4.0.9.md
TomShawn Dec 14, 2020
03f818e
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
45f46c9
add new notes from ichn-hu, Win-Man, and you06
TomShawn Dec 15, 2020
6527dd8
Update releases/release-4.0.9.md
TomShawn Dec 15, 2020
c36dd25
Apply suggestions from code review
TomShawn Dec 17, 2020
b4206cb
Apply suggestions from code review
TomShawn Dec 17, 2020
4f7d801
Merge branch 'master' into 4.0.9-rn
TomShawn Dec 18, 2020
9e5686d
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
1c813a2
Apply suggestions from code review
TomShawn Dec 18, 2020
603a2a4
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
502dc79
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
1393190
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
d9a60f2
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
3864971
add TikV notes from jay
TomShawn Dec 18, 2020
124461a
add tidb dashboard notes
TomShawn Dec 18, 2020
b93710f
Merge branch 'master' into 4.0.9-rn
TomShawn Dec 18, 2020
dc84a15
Merge branch 'master' into 4.0.9-rn
TomShawn Dec 21, 2020
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 @@ -526,6 +526,7 @@
+ [发布版本汇总](/releases/release-notes.md)
+ [产品路线图](/roadmap.md)
+ v4.0
- [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)
- [4.0.6](/releases/release-4.0.6.md)
Expand Down
103 changes: 103 additions & 0 deletions releases/release-4.0.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
---
title: TiDB 4.0.9 Release Notes
---

# TiDB 4.0.9 Release Notes

发版日期:2020 年 12 月 3 日

TiDB 版本:4.0.9

## 兼容性更改

+ TiDB

- 添加了对于连接的空闲时间的监控项 [#21301](https://github.com/pingcap/tidb/pull/21301)

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

+ TiDB

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 在转换等值条件为其它条件时,通过使用启发式规则,避免生成 (index) merge join 以得到更好的执行计划 [#21146](https://github.com/pingcap/tidb/pull/21146)
- 区分用户变量的类型 [#21107](https://github.com/pingcap/tidb/pull/21107)
- 配置文件中添加了 performance.gogc 配置项,用于设置 GOGC [#20922](https://github.com/pingcap/tidb/pull/20922)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 提升了 `Timestamp` 和 `Datetime` 类型的二进制输出结果的 MySQL 兼容性 [#21135](https://github.com/pingcap/tidb/pull/21135)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 对于可剪切的表达式进行常量折叠时,避免输出不必要的警告或错误 [#21040](https://github.com/pingcap/tidb/pull/21040)
- 优化了 `load data` 语句执行 prepare 操作的报错信息 [#21199](https://github.com/pingcap/tidb/pull/21199)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修改列类型的时候,忽略掉整型字段的零值填充大小属性 [#20986](https://github.com/pingcap/tidb/pull/20986)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- `explain analyze` 对于 DML 语句正确的显示执行器相关的运行时信息 [#21066](https://github.com/pingcap/tidb/pull/21066)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 禁止一条语句中,对主键做出多次不同的修改 [#21113](https://github.com/pingcap/tidb/pull/21113)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 添加了对于连接的空闲时间的监控项 [#21301](https://github.com/pingcap/tidb/pull/21301)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

-
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

-

+ TiKV

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

-

+ TiFlash

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

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

-

## Bug 修复

+ TiDB

- 修复了前缀索引和 `OR` 条件一起使用时结果不正确的问题 [#21287](https://github.com/pingcap/tidb/pull/21287)
- 修复了开启自动重试后可能出现的一处 panic。在事务重试时,执行到 `SET SQL_SELECT_LIMIT=DEFAULT` 这类语句时会触发该 panic [#21285](https://github.com/pingcap/tidb/pull/21285)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了分区表对于列的类型检查的一处问题。对于时间和日期类型,错误地使用了字符串方式比较大小 [#21273](https://github.com/pingcap/tidb/pull/21273)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了分区表对于列的类型检查的一处问题。分区表达式的值的类型和分区列的类型必须一致 [#21136](https://github.com/pingcap/tidb/pull/21136)
- 修复了哈希分区表对于分区名唯一性检查的问题 [#21257](https://github.com/pingcap/tidb/pull/21257)
- 修复非 int 类型的值,插入到哈希分区表后结果不正确的问题 [#21238](https://github.com/pingcap/tidb/pull/21238)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了在部分写入类的场景中,使用了 index join 会遇到非预期报错的问题 [#21249](https://github.com/pingcap/tidb/pull/21249)
- 修复了在 CASE WHEN 中 bigint 无符列的值,被错误地转换成有符类型的问题 [#21236](https://github.com/pingcap/tidb/pull/21236)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了 index hash join 和 index merge join 没有考虑 collation 的问题 [#21219](https://github.com/pingcap/tidb/pull/21219)
- 修复了分区表在建表和查询时,没有考虑 collation 的问题 [#21181](https://github.com/pingcap/tidb/pull/21181)
- 修复了慢日志记录的查询结果可能不全的问题 [#21211](https://github.com/pingcap/tidb/pull/21211)
- 修复了一处数据库名大小写处理不当,导致的 `DELETE` 未正确删除数据的问题 [#21206](https://github.com/pingcap/tidb/pull/21206)
- 修复了一处执行 DML 语句导致 schema 的内存被覆盖的问题 [#21050](https://github.com/pingcap/tidb/pull/21050)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了使用 join 时,无法查询到合并后的列的问题 [#21021](https://github.com/pingcap/tidb/pull/21021)
- 修复了一些 semi join 的查询结果不正确的问题 [#21019](https://github.com/pingcap/tidb/pull/21019)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了表锁对于 update 语句不生效的问题 [#21002](https://github.com/pingcap/tidb/pull/21002)
- 修复创建递归的视图,出现栈溢出的问题 [#21001](https://github.com/pingcap/tidb/pull/21001)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了 index merge join 在执行外连接的时候,结果不符合预期的问题 [#20954](https://github.com/pingcap/tidb/pull/20954)
- 修复了一处事务问题,该场景下应该返回结果未知,但是却返回了执行失败 [#20925](https://github.com/pingcap/tidb/pull/20925)
- 修复 `explain for connection` 无法显示最后一次执行计划的问题 [#21315](https://github.com/pingcap/tidb/pull/21315)
- 修复在 RC 隔离级别下,index merge 结果不正确的问题 [#21253](https://github.com/pingcap/tidb/pull/21253)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了由于事务写冲突重试导致的 auto-id 分配失败 [#21079](https://github.com/pingcap/tidb/pull/21079)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了 JSON 数据无法通过 `load data` 无法正确导入到 TiDB 的问题 [#21074](https://github.com/pingcap/tidb/pull/21074)
- 修复新增加 enum 类型的列的默认值问题 [#20998](https://github.com/pingcap/tidb/pull/20998)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 对于日期类型的数学计算,保留原始的数据类型信息,修复 `adddata` 函数插入非法值的问题 [#21176](https://github.com/pingcap/tidb/pull/21176)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- 修复了部分场景错误地生成了 PointGet 的执行计划,导致执行结果不正确 [#21244](https://github.com/pingcap/tidb/pull/21244)

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
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
+ TiKV

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

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

+ TiFlash

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

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

-
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ TiDB 历史版本发布声明如下:

## 4.0

- [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)
- [4.0.6](/releases/release-4.0.6.md)
Expand Down