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.16 release notes #7119

Merged
merged 95 commits into from
Dec 17, 2021
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
0ec720c
merge from upstream master
ti-srebot Jul 31, 2021
75641ac
merge from upstream master
ti-srebot Sep 10, 2021
afec2bc
merge from upstream master
ti-srebot Sep 14, 2021
618b2b0
merge from upstream master
ti-srebot Sep 14, 2021
158f9de
merge from upstream master
ti-srebot Sep 18, 2021
66689a1
merge from upstream master
ti-srebot Oct 20, 2021
d9d94a8
Update continuous-profiling & dashboard-profiling
shichun-0415 Nov 10, 2021
fa4f8e3
Update dashboard-profiling.md
shichun-0415 Nov 11, 2021
1093d0e
Update the value of txn-local-latches from enable to enabled
shichun-0415 Nov 12, 2021
db5d78f
Update tidb-configuration-file.md
shichun-0415 Nov 12, 2021
fc65bfe
Apply suggestions from code review
shichun-0415 Nov 14, 2021
7214871
Update dashboard/continuous-profiling.md
shichun-0415 Nov 14, 2021
7a16275
Update continuous-profiling.md
shichun-0415 Nov 14, 2021
8096fd2
Update dashboard-profiling-access.png
shichun-0415 Nov 15, 2021
8289aac
Merge branch 'master' into pr/6772
shichun-0415 Nov 16, 2021
cabf4a4
Update continuous-profiling.md
shichun-0415 Nov 16, 2021
526c1df
Apply suggestions from code review
shichun-0415 Nov 17, 2021
331968d
Update dashboard/continuous-profiling.md
shichun-0415 Nov 17, 2021
4a620c3
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 19, 2021
6916466
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 19, 2021
f80ca57
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 19, 2021
1f351ec
Merge branch 'pingcap:master' into master
shichun-0415 Nov 22, 2021
edf5897
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 23, 2021
1868670
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 23, 2021
2019666
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 24, 2021
fe91a1d
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 24, 2021
a4cefaa
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 25, 2021
c46e83d
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 26, 2021
18b52bd
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 29, 2021
6381f7d
Merge remote-tracking branch 'upstream/master'
shichun-0415 Nov 29, 2021
a0b0253
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 2, 2021
5cf1da6
merge from upstream master
ti-srebot Dec 3, 2021
6993f33
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 3, 2021
33757bc
merge from upstream master
ti-srebot Dec 6, 2021
c031655
releases: add TiDB 4.0.16-14-30-24 release notes
ti-srebot Dec 6, 2021
3133e12
releases: Add TiDB 4.0.16 release notes
shichun-0415 Dec 6, 2021
b63fce9
Recover to the original state
shichun-0415 Dec 6, 2021
3506f2c
Update releases/release-4.0.16.md
shichun-0415 Dec 6, 2021
37292d7
Update release-4.0.16.md
shichun-0415 Dec 6, 2021
cd6d54a
Merge branch 'update-4.0.16-14-30-24' of https://github.com/ti-srebot…
shichun-0415 Dec 6, 2021
8b5564f
Update release-4.0.16.md
TomShawn Dec 6, 2021
56fafb6
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 7, 2021
ead4ad0
Update release-4.0.16.md
shichun-0415 Dec 7, 2021
c99e7bb
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 8, 2021
31036c1
add notes from tidb, tikv, tools, tiflash and pd
TomShawn Dec 8, 2021
b314060
Update releases/release-4.0.16.md
TomShawn Dec 8, 2021
64bc214
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 8, 2021
1bedf8f
Update release-4.0.16.md
TomShawn Dec 8, 2021
18e2359
refine format
TomShawn Dec 8, 2021
2a425f2
Update release-4.0.16.md
TomShawn Dec 8, 2021
31bf0e0
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 8, 2021
9b5eae2
Change PR number to issue number
shichun-0415 Dec 8, 2021
4c5397f
Add PRs of critical bugs
shichun-0415 Dec 8, 2021
aa78023
Merge branch 'master' into pr/7119
TomShawn Dec 8, 2021
59f9df2
Apply suggestions from code review
TomShawn Dec 8, 2021
325b225
change more pr to issue
TomShawn Dec 8, 2021
1209f95
Merge remote-tracking branch 'upstream/master'
shichun-0415 Dec 9, 2021
6e73960
Merge branch 'master' into pr/7119
shichun-0415 Dec 9, 2021
5a99532
Change PR to issue
shichun-0415 Dec 9, 2021
c998383
Update release-4.0.16.md
TomShawn Dec 9, 2021
2cb168c
mark duplicated notes
TomShawn Dec 9, 2021
c126da8
Apply suggestions from code review
TomShawn Dec 9, 2021
6afbeb8
Apply suggestions from code review
hfxsd Dec 9, 2021
d2afd12
Update releases/release-4.0.16.md
TomShawn Dec 9, 2021
10ae69d
Apply suggestions from code review
qiancai Dec 9, 2021
b602e90
Update releases/release-4.0.16.md
hfxsd Dec 9, 2021
10332c0
Apply suggestions from code review
hfxsd Dec 9, 2021
f022ad5
Update releases/release-4.0.16.md
hfxsd Dec 9, 2021
aa349f6
Apply suggestions from code review
hfxsd Dec 9, 2021
ce10abe
Apply suggestions from code review
hfxsd Dec 9, 2021
956f79b
Update releases/release-4.0.16.md
hfxsd Dec 9, 2021
e8981ac
Update releases/release-4.0.16.md
shichun-0415 Dec 9, 2021
bc36e92
Update releases/release-4.0.16.md
shichun-0415 Dec 9, 2021
dc77bca
Update releases/release-4.0.16.md
hfxsd Dec 9, 2021
cd0f70e
Update releases/release-4.0.16.md
TomShawn Dec 9, 2021
ca61520
Apply suggestions from code review
shichun-0415 Dec 9, 2021
3f290e5
Apply suggestions from code review
shichun-0415 Dec 9, 2021
a624823
Update releases/release-4.0.16.md
shichun-0415 Dec 9, 2021
1dd4163
Apply suggestions from code review
en-jin19 Dec 9, 2021
f12ae3f
Apply suggestions from code review
en-jin19 Dec 9, 2021
3110d70
Update releases/release-4.0.16.md
TomShawn Dec 10, 2021
c90ac7c
Update releases/release-4.0.16.md
TomShawn Dec 10, 2021
b0fa277
Update releases/release-4.0.16.md
TomShawn Dec 10, 2021
07900b0
Update releases/release-4.0.16.md
shichun-0415 Dec 10, 2021
a870191
Remove the dup label
shichun-0415 Dec 10, 2021
e5bb200
Apply suggestions from code review
shichun-0415 Dec 10, 2021
53d8cd4
Update releases/release-4.0.16.md
TomShawn Dec 10, 2021
b039f1d
Apply suggestions from code review
shichun-0415 Dec 10, 2021
3b72c0a
Update releases/release-4.0.16.md
TomShawn Dec 10, 2021
eace1bc
Update release-4.0.16.md
shichun-0415 Dec 17, 2021
ed2f434
Merge branch 'update-4.0.16-14-30-24' of https://github.com/ti-srebot…
shichun-0415 Dec 17, 2021
6e95f77
Update release-timeline.md
shichun-0415 Dec 17, 2021
5ada111
Update releases/release-4.0.16.md
en-jin19 Dec 17, 2021
51fec57
Update release-4.0.16.md
shichun-0415 Dec 17, 2021
3e3f731
Update releases/release-4.0.16.md
TomShawn Dec 17, 2021
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 @@ -595,6 +595,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.16](/releases/release-4.0.16.md)
- [4.0.15](/releases/release-4.0.15.md)
- [4.0.14](/releases/release-4.0.14.md)
- [4.0.13](/releases/release-4.0.13.md)
Expand Down
112 changes: 112 additions & 0 deletions releases/release-4.0.16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
---
title: TiDB 4.0.16 Release Notes
---

# TiDB 4.0.16 Release Notes

Release Date: December 10, 2021

TiDB version: 4.0.16

## Compatibility changes

+ TiKV

- Before v4.0.16, when TiDB converts an illegal UTF-8 string to a Real type, an error is reported directly. Starting from v4.0.16, TiDB processes the conversion according to the legal UTF-8 prefix in the string [#11466](https://github.com/tikv/tikv/issues/11466)

+ Tools

+ TiCDC
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- Change the default value of Kafka Sink `max-message-bytes` to 1 MB to prevent TiCDC from sending too large messages to Kafka clusters [#2962](https://github.com/pingcap/ticdc/issues/2962)
- Change the default value of Kafka Sink `partition-num` to 3 so that TiCDC distributes messages across Kafka partitions more evenly [#3337](https://github.com/pingcap/ticdc/issues/3337)

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

+ TiKV

- Reduce the disk space usage by using the zstd algorithm to compress SST files when using Backup & Restore to restore data or using TiDB Lightning's Local-backend [#11469](https://github.com/tikv/tikv/issues/11469)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

+ Backup & Restore (BR)

- Improve the robustness of restoring [#27421](https://github.com/pingcap/tidb/issues/27421)

+ TiCDC

- Add a tick frequency limit to EtcdWorker to prevent frequent etcd writes from affecting PD services [#3112](https://github.com/pingcap/ticdc/issues/3112)
- Optimize rate limiting control on TiKV reloads to reduce gPRC congestion during changefeed initialization [#3110](https://github.com/pingcap/ticdc/issues/3110)

shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
+ Grafana
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved

- Upgrade to v7.5.11 to avoid security vulnerabilities of earlier versions

## Bug fixes

+ TiDB

- Fix the query panic caused by overflow in the statistics module when converting a range to points for cost estimation [#23625](https://github.com/pingcap/tidb/issues/23625)
- Fix wrong results of the control functions (such as `IF` and `CASE WHEN`) when using the `ENUM` type data as parameters of such functions [#23114](https://github.com/pingcap/tidb/issues/23114)
- Fix inconsistent results of the `GREATEST` function when setting `tidb_enable_vectorized_expression` to `on` or `off` [#29434](https://github.com/pingcap/tidb/issues/29434)
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
- Fix the panic when applying index join on prefix indexes in some cases [#24547](https://github.com/pingcap/tidb/issues/24547)
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved
- Fix the issue that planner might cache invalid plans for `join` in some cases [#28087](https://github.com/pingcap/tidb/issues/28087)
- Fix a bug that TiDB cannot insert `null` into a non-null column when `sql_mode` is empty [#11648](https://github.com/pingcap/tidb/issues/11648)
- Fix the wrong result type of the `GREATEST` and`LEAST` functions [#29019](https://github.com/pingcap/tidb/issues/29019)
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved
- Fix the `privilege check fail` error when performing the `grant` and `revoke` operations to grant global level privileges [#29675](https://github.com/pingcap/tidb/issues/29675)
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved
- Fix the panic when using the `CASE WHEN` function on the `ENUM` data type [#29357](https://github.com/pingcap/tidb/issues/29357)
- Fix wrong results of the `microsecond` function in vectorized expressions [#29244](https://github.com/pingcap/tidb/issues/29244)
- Fix wrong results of the `hour` function in vectorized expression [#28643](https://github.com/pingcap/tidb/issues/28643)
- Fix the issue that optimistic transaction conflicts might cause transactions to block each other [#11148](https://github.com/tikv/tikv/issues/11148)
- Fix the issue of incomplete log information from the `auto analyz` result [#29188](https://github.com/pingcap/tidb/issues/29188)
- Fix the issue that using an invalid default date does not report an error when the `SQL_MODE` is 'NO_ZERO_IN_DATE' [#26766](https://github.com/pingcap/tidb/issues/26766)
- Fix the issue that the Coprocessor Cache panel in Grafana does not display metrics. Now, Grafana displays the number of `hits`/`miss`/`evict` [#26338](https://github.com/pingcap/tidb/issues/26338)
- Fix the issue that concurrently truncating the same partition causes DDL statements to stuck [#26229](https://github.com/pingcap/tidb/issues/26229)
- Fix the issue that when the `CONCAT` function has a negative float type argument, the last digit of the argument number is chopped in the result [#29417](https://github.com/pingcap/tidb/issues/29417)
- Fix the issue of an extra column in the query result when `NATURAL JOIN` is used to join multiple tables [#29481](https://github.com/pingcap/tidb/issues/29481)
- Fix the issue that `TopN` is wrongly pushed down to `indexPlan` when `IndexScan` uses a prefix index [#29711](https://github.com/pingcap/tidb/issues/29711)
- Fix the issue that retrying transactions with the auto-increment columns of `DOUBLE` type causes data error [#29892](https://github.com/pingcap/tidb/issues/29892)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix a panic issue that occurs when Region merge, ConfChange, and Snapshot happen at the same time in extreme conditions [#11475](https://github.com/tikv/tikv/issues/11475)
- Fix the issue of negative sign when the decimal divide result is zero [#29586](https://github.com/pingcap/tidb/issues/29586)
- Fix the issue that the average latency of the by-instance gRPC requests is inaccurate in TiKV metrics [#11299](https://github.com/tikv/tikv/issues/11299)
- Fix the issue of TiCDC panic that occurs when the downstream database is missing [#11123](https://github.com/tikv/tikv/issues/11123)
- Fix the issue that the Raft connection is broken when the channel is full [#11047](https://github.com/tikv/tikv/issues/11047)
- Fix the issue that TiDB cannot correctly identify whether the `Int64` types in `Max`/`Min` functions are a signed integer or not, which causes the wrong calculation result of `Max`/`Min` [#10158](https://github.com/tikv/tikv/issues/10158)
- Fix the issue that CDC adds scan retries frequently due to the Congest error [#11082](https://github.com/tikv/tikv/issues/11082)

+ PD

- Fix a panic issue that occurs after the TiKV node is removed [#4344](https://github.com/tikv/pd/issues/4344)
- Fix slow leader election caused by stucked region syncer [#3936](https://github.com/tikv/pd/issues/3936)
- Support that the evict leader scheduler can schedule regions with unhealthy peers [#4093](https://github.com/tikv/pd/issues/4093)

+ TiFlash

- Fix the issue that TiFlash fails to start up on some platforms due to the absence of library `nsl`
shichun-0415 marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

hfxsd marked this conversation as resolved.
Show resolved Hide resolved
+ TiDB Binlog
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- Fix the bug that Drainer exits when transporting a transaction greater than 1 GB [#28659](https://github.com/pingcap/tidb/issues/28659)

+ TiCDC
hfxsd marked this conversation as resolved.
Show resolved Hide resolved

- Fix the negative value error in the changefeed checkpoint lag [#3010](https://github.com/pingcap/ticdc/issues/3010)
- Fix OOM in container environments [#1798](https://github.com/pingcap/ticdc/issues/1798)
- Fix the TiCDC replication interruption issue when multiple TiKVs crash or during a forced restart [#3288](https://github.com/pingcap/ticdc/issues/3288)
- Fix the memory leak issue after processing DDLs [#3174](https://github.com/pingcap/ticdc/issues/3174)
- Fix the issue that changefeed does not fail fast enough when the ErrGCTTLExceeded error occurs [#3111](https://github.com/pingcap/ticdc/issues/3111)
- Fix the issue that TiCDC replication task might terminate when the upstream TiDB instance unexpectedly exits [#3061](https://github.com/pingcap/ticdc/issues/3061)
- Fix the issue that TiCDC process might panic when TiKV sends duplicate requests to the same Region [#2386](https://github.com/pingcap/ticdc/issues/2386)
- Fix the issue that the volume of Kafka messages generated by TiCDC is not constrained by `max-message-size` [#2962](https://github.com/pingcap/ticdc/issues/2962)
- Fix the issue that `tikv_cdc_min_resolved_ts_no_change_for_1m` keeps alerting when there is no changefeed [#11017](https://github.com/tikv/tikv/issues/11017)
- Fix the issue that TiCDC sync task might pause when an error occurs during writing a Kafka message [#2978](https://github.com/pingcap/ticdc/issues/2978)
- Fix the issue that some partitioned tables without valid indexes might be ignored when `force-replicate` is enabled [#2834](https://github.com/pingcap/ticdc/issues/2834)
- Fix the memory leak issue when creating a new changefeed [#2389](https://github.com/pingcap/ticdc/issues/2389)
- Fix the issue that might cause inconsistent data due to Sink components advancing resolved ts early [#3503](https://github.com/pingcap/ticdc/issues/3503)
- Fix the issue that scanning stock data might fail due to TiKV performing GC when scanning stock data takes too long [#2470](https://github.com/pingcap/ticdc/issues/2470)
- Fix the issue that the changefeed update command does not recognize global command line parameters [#2803](https://github.com/pingcap/ticdc/issues/2803)
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 4.0

- [4.0.16](/releases/release-4.0.16.md)
- [4.0.15](/releases/release-4.0.15.md)
- [4.0.14](/releases/release-4.0.14.md)
- [4.0.13](/releases/release-4.0.13.md)
Expand Down
1 change: 1 addition & 0 deletions releases/release-timeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This document shows all the released TiDB versions in reverse chronological orde

| Version | Release Date |
| :--- | :--- |
| [4.0.16](/releases/release-4.0.16.md) | 2021-12-10 |
| [5.1.3](/releases/release-5.1.3.md) | 2021-12-03 |
| [5.0.5](/releases/release-5.0.5.md) | 2021-12-03 |
| [5.2.3](/releases/release-5.2.3.md) | 2021-12-03 |
Expand Down