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 4.0.13 release notes #5621

Merged
merged 20 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from 8 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 @@ -541,6 +541,7 @@
+ [5.0 GA](/releases/release-5.0.0.md)
+ [5.0.0-rc](/releases/release-5.0.0-rc.md)
+ v4.0
+ [4.0.13](/releases/release-4.0.13.md)
+ [4.0.12](/releases/release-4.0.12.md)
+ [4.0.11](/releases/release-4.0.11.md)
+ [4.0.10](/releases/release-4.0.10.md)
Expand Down
4 changes: 2 additions & 2 deletions quick-start-with-tidb.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ As a distributed system, a basic TiDB test cluster usually consists of 2 TiDB in
tiup playground v5.0.1 --db 2 --pd 3 --kv 3 --monitor
```

The command downloads a version cluster to the local machine and starts it, such as v5.0.1. `--monitor` means that the monitoring component is also deployed.
The command downloads a version cluster to the local machine and starts it, such as v4.0.13. `--monitor` means that the monitoring component is also deployed.

To view the latest version, run `tiup list tidb`.

Expand Down Expand Up @@ -164,7 +164,7 @@ As a distributed system, a basic TiDB test cluster usually consists of 2 TiDB in
tiup playground v5.0.1 --db 2 --pd 3 --kv 3 --monitor
```

The command downloads a version cluster to the local machine and starts it, such as v5.0.1. `--monitor` means that the monitoring component is also deployed.
The command downloads a version cluster to the local machine and starts it, such as v4.0.13. `--monitor` means that the monitoring component is also deployed.

To view the latest version, run `tiup list tidb`.

Expand Down
128 changes: 128 additions & 0 deletions releases/release-4.0.13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
---
title: TiDB 4.0.13 Release Notes
---

# TiDB 4.0.13 Release Notes

Release date: May 28, 2021

TiDB version: 4.0.13

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

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

- Skip reading mysql.stats_histograms if cached stats is up-to-date [#24352](https://github.com/pingcap/tidb/pull/24352)

+ TiFlash

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Automatically clean archive data to free up disk space [#1638](https://github.com/pingcap/tics/pull/1638)
- No release notes [#1625](https://github.com/pingcap/tics/pull/1625)

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
## Bug Fixes

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

- Fix panic when subquery update stmt the table with generated columns [#24658](https://github.com/pingcap/tidb/pull/24658)
- Fix the case that there could be duplicate ranges for multi-column index. [#24634](https://github.com/pingcap/tidb/pull/24634)
- Fix wrong flen infer for bit constant [#24266](https://github.com/pingcap/tidb/pull/24266)
- Fix an issue that `NO_ZERO_IN_DATE` SQL mode does not work in default value [#24185](https://github.com/pingcap/tidb/pull/24185)
- Fix type merge about bit type. [#24026](https://github.com/pingcap/tidb/pull/24026)
- Planner: fix wrong TableDual plans caused by comparing Binary and Bytes incorrectly [#23917](https://github.com/pingcap/tidb/pull/23917)
- Fix insert ignore on duplicate may delete wrong record [#23825](https://github.com/pingcap/tidb/pull/23825)
- Plugin: fix audit plugin will cause tidb panic [#23819](https://github.com/pingcap/tidb/pull/23819)
- Fix collation for hash join building [#23812](https://github.com/pingcap/tidb/pull/23812)
- Fix batch point lock maybe panic when condition value overflow [#23778](https://github.com/pingcap/tidb/pull/23778)
- Fix text type decode for old row format [#23772](https://github.com/pingcap/tidb/pull/23772)
- Fix bug when compare int_column with constant value [#23705](https://github.com/pingcap/tidb/pull/23705)
- Fix approx_percent panic on bit column [#23702](https://github.com/pingcap/tidb/pull/23702)
- Fix a bug that causes TiDB to report `TiKV server timeout` when executing TiFlash batch request. [#23700](https://github.com/pingcap/tidb/pull/23700)
- Fix index join on prefix column index [#23691](https://github.com/pingcap/tidb/pull/23691)
- Fix collation for binary literal [#23598](https://github.com/pingcap/tidb/pull/23598)
- Fix update panic on join having statement. [#23575](https://github.com/pingcap/tidb/pull/23575)
- Planner: fix inappropriate null flag of null constants [#23474](https://github.com/pingcap/tidb/pull/23474)
- Fix unexpected constant fold when year compare string. [#23335](https://github.com/pingcap/tidb/pull/23335)
- Group_concat aggr panic when session.group_concat_max_len is small. [#23257](https://github.com/pingcap/tidb/pull/23257)
- Fix incorrect duration between compare [#23233](https://github.com/pingcap/tidb/pull/23233)
- Fix the delete stmt privilege check. [#23215](https://github.com/pingcap/tidb/pull/23215)
- Types: fix the bug about the wrong query result for decimal type [#23196](https://github.com/pingcap/tidb/pull/23196)
- Fix wrong error info [#23152](https://github.com/pingcap/tidb/pull/23152)
- Fix wrong index merge selection [#22924](https://github.com/pingcap/tidb/pull/22924)
- Fix enum and set type expression in where clause [#22814](https://github.com/pingcap/tidb/pull/22814)
- Fix a bug which causes panic when using the clustered index and the new collation [#21408](https://github.com/pingcap/tidb/pull/21408)
- Fix the panic when analyze with collation enabled [#21299](https://github.com/pingcap/tidb/pull/21299)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ TiFlash

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix the bug that the number of storage delta-merge-tasks is not reported to Prometheus [#1838](https://github.com/pingcap/tics/pull/1838)
- Fix a bug that causes TiFlash crash during Segment Split. [#1814](https://github.com/pingcap/tics/pull/1814)
- Fix the bug that the Grafana panel `Region write Duration (write blocks)` may be shown in wrong place [#1804](https://github.com/pingcap/tics/pull/1804)
- Fix a potential issue that the DeleteRange in the storage engine failed to remove some data. [#1789](https://github.com/pingcap/tics/pull/1789)
- Fix problem that TiFlash coprocessor's cast time as int function may produce incorrect result. [#1785](https://github.com/pingcap/tics/pull/1785)
- Fix problem that behavior of TiFlash coprocessor's bitwise operator is different from TiDB [#1773](https://github.com/pingcap/tics/pull/1773)
- Fix the problem that TiFlash coprocessor's cast string as int function may produce incorrect result. [#1767](https://github.com/pingcap/tics/pull/1767)
- Fix the issue that continuous and fast writing may make TiFlash OOM [#1737](https://github.com/pingcap/tics/pull/1737)
- Fix the crash that causes by applying Raft commands to dropped tables [#1724](https://github.com/pingcap/tics/pull/1724)
- Fix potential NPE in schema sync service when database is dropped between GC and getting the database info. [#1707](https://github.com/pingcap/tics/pull/1707)
- Fix the issue that TiFlash may panic during br restore [#1697](https://github.com/pingcap/tics/pull/1697)
- Fix the bug that some characters have wrong weights when using general CI collation [#1667](https://github.com/pingcap/tics/pull/1667)
- Fix potential data loss when recovering a table that is previously dropped. [#1662](https://github.com/pingcap/tics/pull/1662)
- Fix a string compare bug that sometimes >= and <= will return wrong result if the contains with `\0` [#1658](https://github.com/pingcap/tics/pull/1658)
- Fix bug 1. logical function only accept numeric type as its input type, 2. logical function return wrong result if input column contains a null constant. [#1636](https://github.com/pingcap/tics/pull/1636)
- Fix wrong return value of timestamp column if the timestamp value is `1970-01-01` and the timezone offset is negative [#1601](https://github.com/pingcap/tics/pull/1601)
- Fix bug that Decimal256's hash value is not stable [#1597](https://github.com/pingcap/tics/pull/1597)

## 请对以下未分类的 PR 进行分类,并挪动到以上对应类别中(Compatibility Changes, New Features, Improvements, Bug Fixes)。如果某条 note 不属于本次发版,请删除

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
+ Tools
- Lightning
- Fix the bug that the lightning's tidb backend cannot load any data when autocommit is disabled.

+ TiDB

- Allow changing an `AUTO_INCREMENT` column to an `AUTO_RANDOM` one. [#24608](https://github.com/pingcap/tidb/pull/24608)
- SQL Views now consider the default roles associated with the SQL DEFINER correctrly. [#24531](https://github.com/pingcap/tidb/pull/24531)
- Ddl: fix the covert job to rollingback job [#24445](https://github.com/pingcap/tidb/pull/24445)
- Fix wrong collation for concat function [#24300](https://github.com/pingcap/tidb/pull/24300)
- Fix wrong results for in clause. [#24022](https://github.com/pingcap/tidb/pull/24022)
- If bug that max(primary_key_col) may return wrong result on TiDB + TiFlash. [#23974](https://github.com/pingcap/tidb/pull/23974)
- Fix a bug that point get plan returns wrong column name [#23970](https://github.com/pingcap/tidb/pull/23970)
- Fix `show table status` for the database with upper-cased name. [#23958](https://github.com/pingcap/tidb/pull/23958)
- Users now need both Insert and Delete privileges on a table to perform REPLACE. [#23938](https://github.com/pingcap/tidb/pull/23938)
- Fix resource leak of Shuffle Executor. [#23888](https://github.com/pingcap/tidb/pull/23888)
- Fix some string function get wrong result [#23878](https://github.com/pingcap/tidb/pull/23878)
- Fix the panic when we calculate the partition range [#23689](https://github.com/pingcap/tidb/pull/23689)
- Fix a panic on batch point get for non-partitioned table with partition meta information. When a cluster is upgrade from a old version, its partition meta information maybe not null, but the `Enable` field is false, it should be treat as a non-partitioned table. [#23682](https://github.com/pingcap/tidb/pull/23682)
- When TiDB was configured to listen on TCP and UNIX sockets, connections over TCP did not correctly validate that the remote host was permitted to connect. [#23513](https://github.com/pingcap/tidb/pull/23513)
- A set of client_errors_summary tables has been added to Information Schema. This helps keep track of which errors have been sent to clients. [#23267](https://github.com/pingcap/tidb/pull/23267)
- Fix a bug may cause wrong constant propagation and get the wrong result. [#22923](https://github.com/pingcap/tidb/pull/22923)
- Fix wrong bucket name of coprocessor cache. [#22617](https://github.com/pingcap/tidb/pull/22617)
- Fix panic occurs when stats inconsistency [#22565](https://github.com/pingcap/tidb/pull/22565)

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

- Support back pressure CDC scan speed. [#10145](https://github.com/tikv/tikv/pull/10145)
- Fix interference between connections to the same region. [#10144](https://github.com/tikv/tikv/pull/10144)
- Cdc: skip seek old value for Put if cache returns None [#10141](https://github.com/tikv/tikv/pull/10141)
- Reduce memory usage of CDC initial scan. [#10134](https://github.com/tikv/tikv/pull/10134)
- Fix potential panics when input of cast_string_as_time is invalid UTF-8 bytes [#9994](https://github.com/tikv/tikv/pull/9994)
- Cdc: limit scan speed (128MB/s by default) [#9983](https://github.com/tikv/tikv/pull/9983)
- Fix the bug that TiKV cannot startup when the end of file dict file is damaged. [#9963](https://github.com/tikv/tikv/pull/9963)

+ PD

- Metrics: let tso processing time not include consumption on the network [#3524](https://github.com/pingcap/pd/pull/3524)
- Dashboard: update to v2021.03.12.1 [#3469](https://github.com/pingcap/pd/pull/3469)

+ Tools

- BR

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
* BR would check cluster version of backup now. [#1090](https://github.com/pingcap/br/pull/1090)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
* BR now support backing up user tables created in the `mysql` schema. [#1077](https://github.com/pingcap/br/pull/1077)
* BR now can tolerate minor TiKV disconnection. [#1062](https://github.com/pingcap/br/pull/1062)

- TiCDC

* Fix bug in flow control [#1779](https://github.com/pingcap/ticdc/pull/1779)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
* Modified the update strategy of gcSafePoint. Fix the problem that TiKV GC safe point is blocked indefinitely due to TiCDC changefeed checkpoint stagnation. [#1756](https://github.com/pingcap/ticdc/pull/1756)
* Implement processor flow control to avoid OOM. [#1751](https://github.com/pingcap/ticdc/pull/1751)
* Revert the update for explicit_defaults_for_timestamp which requires `SUPER` privilege when replicating to MySQL. [#1749](https://github.com/pingcap/ticdc/pull/1749)
* Add stale temporary files clean-up in Unified Sorter, and forbids sharing sort-dir. [#1741](https://github.com/pingcap/ticdc/pull/1741)
* Aadd http handler for failpoint [#1732](https://github.com/pingcap/ticdc/pull/1732)
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 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 4.0

- [4.0.13](/releases/release-4.0.13.md)
- [4.0.12](/releases/release-4.0.12.md)
- [4.0.11](/releases/release-4.0.11.md)
- [4.0.10](/releases/release-4.0.10.md)
Expand Down