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.2.2 release notes #6648

Merged
merged 68 commits into from
Oct 29, 2021
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
c879598
correct-the-title-level
Mar 15, 2021
656259a
Revert "correct-the-title-level"
Mar 15, 2021
ca92f97
Merge remote-tracking branch 'upstream/master'
qiancai Mar 16, 2021
83f382d
Merge remote-tracking branch 'upstream/master'
qiancai Mar 18, 2021
cdec365
Merge remote-tracking branch 'upstream/master'
qiancai Mar 23, 2021
3272256
Merge remote-tracking branch 'upstream/master'
qiancai Mar 24, 2021
5f5d7bf
Merge remote-tracking branch 'upstream/master'
qiancai Mar 25, 2021
32fd464
Merge remote-tracking branch 'upstream/master'
qiancai Mar 26, 2021
f1f925e
Merge remote-tracking branch 'upstream/master'
qiancai Mar 29, 2021
9fc1720
Merge remote-tracking branch 'upstream/master'
qiancai Apr 2, 2021
9538fc3
Merge remote-tracking branch 'upstream/master'
qiancai Apr 6, 2021
f672173
Merge remote-tracking branch 'upstream/master'
qiancai Apr 7, 2021
a7e77b2
Merge remote-tracking branch 'upstream/master'
qiancai Apr 8, 2021
df97735
Merge remote-tracking branch 'upstream/master'
qiancai Apr 9, 2021
cbfb609
Merge remote-tracking branch 'upstream/master'
qiancai Apr 13, 2021
4c57122
Merge remote-tracking branch 'upstream/master'
qiancai Apr 19, 2021
b0db8e6
TiUP: Fix broken links and errors
qiancai Apr 19, 2021
1e4666c
Revert "TiUP: Fix broken links and errors"
qiancai Apr 19, 2021
41fc9ec
Merge remote-tracking branch 'upstream/master'
qiancai Apr 20, 2021
fcbd67c
Merge remote-tracking branch 'upstream/master'
qiancai Jun 23, 2021
3d57476
Merge remote-tracking branch 'upstream/master'
qiancai Jun 24, 2021
814eeae
Merge remote-tracking branch 'upstream/master'
qiancai Jun 24, 2021
845ad64
Merge remote-tracking branch 'upstream/master'
qiancai Jul 8, 2021
e26142c
Merge remote-tracking branch 'upstream/master'
qiancai Jul 8, 2021
36ee453
Merge remote-tracking branch 'upstream/master'
qiancai Jul 21, 2021
c30e42d
Merge remote-tracking branch 'upstream/master'
qiancai Jul 30, 2021
0ec720c
merge from upstream master
ti-srebot Jul 31, 2021
93174d5
Merge remote-tracking branch 'upstream/master'
qiancai Aug 24, 2021
523af42
Merge remote-tracking branch 'upstream/master'
qiancai Aug 24, 2021
7ce4037
Merge remote-tracking branch 'upstream/master'
qiancai Aug 25, 2021
cdd77ab
Merge remote-tracking branch 'upstream/master'
qiancai Aug 28, 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
0449095
releases: add TiDB 5.2.2-14-24-47 release notes
ti-srebot Oct 20, 2021
bdcfec5
Merge branch 'pingcap:master' into update-5.2.2-14-24-47
qiancai Oct 20, 2021
1a93c7f
add_5.2.2_to_toc
qiancai Oct 20, 2021
483af9e
Update release-5.2.2.md
qiancai Oct 20, 2021
113bf56
Update releases/release-5.2.2.md
qiancai Oct 25, 2021
efaa42f
Update releases/release-5.2.2.md
qiancai Oct 25, 2021
83c29fe
Update releases/release-5.2.2.md
qiancai Oct 25, 2021
915c25f
Apply suggestions from code review
qiancai Oct 26, 2021
97b51cb
Update releases/release-5.2.2.md
qiancai Oct 26, 2021
05d94b8
Merge branch 'master' into pr/6648
qiancai Oct 26, 2021
a6772e7
implement input
qiancai Oct 26, 2021
259b66b
Update releases/release-5.2.2.md
qiancai Oct 28, 2021
260943a
Update releases/release-5.2.2.md
qiancai Oct 28, 2021
82577a4
Update release-5.2.2.md
qiancai Oct 28, 2021
76ee3e7
add_tikv_notes
qiancai Oct 28, 2021
eca04b4
Update release-5.2.2.md
qiancai Oct 28, 2021
97c2bbc
Update releases/release-5.2.2.md
qiancai Oct 28, 2021
ea8e90e
Apply suggestions from code review
qiancai Oct 28, 2021
f02568c
Update releases/release-5.2.2.md
qiancai Oct 28, 2021
7f59bbc
revise TiKV & PD
en-jin19 Oct 28, 2021
b35ee53
revise format of TiKV and PD parts
en-jin19 Oct 28, 2021
d8f3c48
revise format of TiKV and PD parts
en-jin19 Oct 28, 2021
103bcba
Apply suggestions from code review
qiancai Oct 29, 2021
ab7a29a
Apply suggestions from code review
Liuxiaozhen12 Oct 29, 2021
e96754c
Update releases/release-5.2.2.md
hfxsd Oct 29, 2021
105d3c1
Apply suggestions from code review
en-jin19 Oct 29, 2021
418766e
Apply suggestions from code review
en-jin19 Oct 29, 2021
3fc846a
Apply suggestions from code review
Liuxiaozhen12 Oct 29, 2021
35c919a
Update releases/release-5.2.2.md
qiancai Oct 29, 2021
a0c5cc4
Update releases/release-5.2.2.md
qiancai Oct 29, 2021
cd272ad
Apply suggestions from code review
Liuxiaozhen12 Oct 29, 2021
6d5e0cf
Update releases/release-5.2.2.md
qiancai Oct 29, 2021
ca3c270
Update release-5.2.2.md
qiancai Oct 29, 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 @@ -558,6 +558,7 @@
+ Release Notes
+ [All Releases](/releases/release-notes.md)
+ v5.2
+ [5.2.2](/releases/release-5.2.2.md)
+ [5.2.1](/releases/release-5.2.1.md)
+ [5.2.0](/releases/release-5.2.0.md)
+ v5.1
Expand Down
119 changes: 119 additions & 0 deletions releases/release-5.2.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
title: TiDB 5.2.2 Release Notes
---

# TiDB 5.2.2 Release Notes

Release Date: October 27, 2021

TiDB version: 5.2.2

## Compatibility change(s)

## Feature enhancement(s)

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

+ TiDB

- Show the affected SQL statements in the debug log when the coprocessor encounters a lock, which is helpful in diagnosing problems [#27718](https://github.com/pingcap/tidb/issues/27718)
- Support showing the size of the backup and restore data when backing up and restoring data in the SQL logical layer [#27247](https://github.com/pingcap/tidb/issues/27247)

+ TiKV

- Simplify the algorithm of L0 flow control [#10879](https://github.com/tikv/tikv/issues/10879)
- Improve the error log report in raft client module [#10983](https://github.com/tikv/tikv/pull/10983)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Make the slow log of TiKV coprocessor only consider the time spent on processing requests [#10841](https://github.com/tikv/tikv/issues/10841)
- Drop log instead of blocking threads when the slogger thread is overloaded and the queue is filled up [#10841](https://github.com/tikv/tikv/issues/10841)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Add more statistics types of write queries [#10507](https://github.com/tikv/tikv/issues/10507)

+ PD

- Add more types of write queries to QPS dimensions in the hotspot scheduler [#3869](https://github.com/tikv/pd/issues/3869)
- Support dynamically adjusting the retry limit of the balance region scheduler to improve the performance of the scheduler [#3744](https://github.com/tikv/pd/issues/3744)
- Update TiDB Dashboard to v2021.10.08.1 [#4070](https://github.com/tikv/pd/pull/4070)
- Support that the evict leader scheduler can schedule regions with unhealthy peers [#4093](https://github.com/tikv/pd/issues/4093)
- Speed up the exit process of a scheduler after receiving an end-of-process signal [#4146](https://github.com/tikv/pd/issues/4146)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

+ TiCDC
- Reduce the default value of the Kafka sink configuration item `MaxMessageBytes` from 64 MB to 1 MB to fix the issue that large messages are rejected by the Kafka Broker [#3104](https://github.com/pingcap/ticdc/pull/3104)
- Reduce memory usage in the synchronization link [#2553](https://github.com/pingcap/ticdc/issues/2553)[#3037](https://github.com/pingcap/ticdc/pull/3037) [#2726](https://github.com/pingcap/ticdc/pull/2726)
qiancai marked this conversation as resolved.
Show resolved Hide resolved
- Optimize monitoring items and alert rules to improve observability of synchronous links, memory GC, and stock data scanning processes [#2735](https://github.com/pingcap/ticdc/pull/2735) [#1606](https://github.com/pingcap/ticdc/issues/1606) [#3000](https://github.com/pingcap/ticdc/pull/3000 [#2985](https://github.com/pingcap/ticdc/issues/2985) [#2156](https://github.com/pingcap/ticdc/issues/2156)
- When the sync task status is normal, no more historical error messages are displayed to avoid misleading users [#2242](https://github.com/pingcap/ticdc/issues/2242)

## Bug Fixes

+ TiDB

- Fix the issue that plan-cache cannot detect changes of unsigned flags [#28254](https://github.com/pingcap/tidb/issues/28254)
- Fix the wrong partition pruning when the partition function is out of range [#28233](https://github.com/pingcap/tidb/issues/28233)
- Fix the issue that planner may cache invalid plans for `join` in some cases [#28087](https://github.com/pingcap/tidb/issues/28087)
- Fix wrong index hash join when hash column type is enum [#27893](https://github.com/pingcap/tidb/issues/27893)
- Fix a batch client bug that recycling idle connection may block sending requests in some rare cases [#27688](https://github.com/pingcap/tidb/pull/27688)
- Fixed the TiDB Lightning panic issue when it fails to perform checksum on a target cluster [#27686](https://github.com/pingcap/tidb/pull/27686)
- Fix wrong results of the `date_add` and `date_sub` functions in some cases [#27232](https://github.com/pingcap/tidb/issues/27232)
- Fix wrong results of the `hour` function in vectorized expression [#28643](https://github.com/pingcap/tidb/issues/28643)
- Fix the authenticating issue when connecting to MySQL 5.1 or an older client version [#27855](https://github.com/pingcap/tidb/issues/27855)
- Fix the issue that auto analyze might be triggered out of the specified time when a new index is added [#28698](https://github.com/pingcap/tidb/issues/28698)
- Fix a bug that setting any session variable can make `tidb_snapshot` unwork [#28683](https://github.com/pingcap/tidb/pull/28683)
- Fix a bug that BR is not working for clusters with many missing-peer regions [#27534](https://github.com/pingcap/tidb/issues/27534)
- Fix the unexpected error like `tidb_cast to Int32 is not supported` when the unsupported `cast` is pushed down to TiFlash [#23907](https://github.com/pingcap/tidb/issues/23907)
- Fix the issue that `DECIMAL overflow` is missing in the `%s value is out of range in '%s'`error message [#27964](https://github.com/pingcap/tidb/issues/27964)
- Fix a bug that the availability detection of MPP node does not work in some corner cases [#3118](https://github.com/pingcap/tics/issues/3118)
- Fix the`DATA RACE` issue when assigning`MPP task ID` [#27952](https://github.com/pingcap/tidb/issues/27952)
Liuxiaozhen12 marked this conversation as resolved.
Show resolved Hide resolved
- Fix the `INDEX OUT OF RANGE` error for a MPP query after deleting an empty `dual table`. [#28250](https://github.com/pingcap/tidb/issues/28250)
- Fix the issue of false positive error log `invalid cop task execution summaries length` for MPP queries [#1791](https://github.com/pingcap/tics/issues/1791)
- Fix the issue of error log `cannot found column in Schema column` for MPP queries [#28149](https://github.com/pingcap/tidb/pull/28149)
- Fix the issue that TiDB might panic when TiFlash is shuting down [#28096](https://github.com/pingcap/tidb/issues/28096)
- Remove the support for insecure 3DES (Triple Data Encryption Algorithm) based TLS cipher suites [#27859](https://github.com/pingcap/tidb/pull/27859)
- Fix the issue that Lightning connects to offline TiKV nodes during pre-check and causes import failures [#27826](https://github.com/pingcap/tidb/pull/27826)
- Fix the issue that pre-check cost too much time when importing many files to tables [#27605](https://github.com/pingcap/tidb/issues/27605)
- Fix the issue that rewriting expressions makes `between` infer wrong collation [#27146](https://github.com/pingcap/tidb/issues/27146)
- Fix the issue that `group_concat` function did not consider the collation [#27429](https://github.com/pingcap/tidb/issues/27429)
- Fix the result wrong that occurs when the argument of the `extract` function is a negative duration [#27236](https://github.com/pingcap/tidb/issues/27236)
- Fix the issue that creating partition fails if `NO_UNSIGNED_SUBTRACTION` is set [#26765](https://github.com/pingcap/tidb/issues/26765)
- Avoid expressions with side effects in column pruning and aggregation pushdown [#27106](https://github.com/pingcap/tidb/issues/27106)
- Remove useless gRPC logs [#24190](https://github.com/pingcap/tidb/issues/24190)
- Limit the valid decimal length to fix precision-related issues [#3091](https://github.com/pingcap/tics/issues/3091)
- Fix the issue of a wrong way to check for overflow in `plus` expression [#26977](https://github.com/pingcap/tidb/issues/26977)
- Fix the issue of `data too long` error when dumping statistics from the table with `new collation` data [#27024](https://github.com/pingcap/tidb/issues/27024)
- Fix the issue that the retried transactions' statements are not included in `TIDB_TRX` [#28670](https://github.com/pingcap/tidb/pull/28670)

+ TiKV

- Fix the issue that CDC add scan retries frequently due to Congest error [#11082](https://github.com/tikv/tikv/issues/11082)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Fix that the raft connection is broken when the channel is full [#11047](https://github.com/tikv/tikv/issues/11047)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Fix the issue that batch messages are too large in Raft client implementation [#9714](https://github.com/tikv/tikv/issues/9714)
- Fix the issue that concurrent leaks in `resolved_ts` [#10965](https://github.com/tikv/tikv/issues/10965)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Fix a panic issue that occurs to coprocessor when response size exceeds 4 GiB [#9012](https://github.com/tikv/tikv/issues/9012)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved
- Fix the issue that snapshot Garbage Collection (GC) misses GC snapshot files when snapshot files cannot be garbage collected [#10813](https://github.com/tikv/tikv/issues/10813)
- Fix a panic issue that occurs when processing coprocessor requests times out [#10852](https://github.com/tikv/tikv/issues/10852)
en-jin19 marked this conversation as resolved.
Show resolved Hide resolved

+ PD

- Fix the issue that PD incorrectly delete the peers with data and in pending status because the number of peers exceeds the number of configured peers [#4045](https://github.com/tikv/pd/issues/4045)
- Fix the issue that PD does not fix down peers in time [#4077](https://github.com/tikv/pd/issues/4077)
- Fix the issue that the scatter range scheduler cannot schedule empty regions [#4118](https://github.com/tikv/pd/pull/4118)
- Fix the issue that the key manager cost too much CPU [#4071](https://github.com/tikv/pd/issues/4071)
- Fix the data race issue that might occur when setting configurations of hot region scheduler [#4159](https://github.com/tikv/pd/issues/4159)
- Fix slow leader election caused by stucked region syncer[#3936](https://github.com/tikv/pd/issues/3936)

+ TiFlash

- Fix the issue that TiFlash fails to start up under platform without library `nsl`
qiancai marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

+ TiCDC
- Fix the issue that TiCDC sync task may pause when the upstream TiDB instance unexpectedly exits [#3061](https://github.com/pingcap/ticdc/issues/3061)
Liuxiaozhen12 marked this conversation as resolved.
Show resolved Hide resolved
- Fix when TiKV sends duplicate requests to the same Region, TiCDC process PANIC `tikv reported duplicated request to the same region, which is not expected` [#2386](https://github.com/pingcap/ticdc/issues/2386)
Liuxiaozhen12 marked this conversation as resolved.
Show resolved Hide resolved
- Fix useless CPU consumption when verifying downstream TiDB/MySQL availability [#3073](https://github.com/pingcap/ticdc/issues/3073)
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
- 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 TiCDC sync task may 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 may be ignored when `force-replicate` is enabled [#2834](https://github.com/pingcap/ticdc/issues/2834)
- Fix the issue that scanning stock data may fail due to TiKV performing GC when scanning stock data takes too long [#2470](https://github.com/pingcap/ticdc/issues/2470)
- Fix a possible PANIC `interface conversion: interface {} is string, not []uint8` when encoding some types of columns into Open Protocol format [#2758](https://github.com/pingcap/ticdc/issues/2758)
- Fix a possible PANIC `interface conversion: interface {} is uint64, not int64` when encoding some types of columns into Avro format [#2648](https://github.com/pingcap/ticdc/issues/2648)
hfxsd marked this conversation as resolved.
Show resolved Hide resolved
Liuxiaozhen12 marked this conversation as resolved.
Show resolved Hide resolved

Liuxiaozhen12 marked this conversation as resolved.
Show resolved Hide resolved
Liuxiaozhen12 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 @@ -7,6 +7,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 5.2

- [5.2.2](/releases/release-5.2.2.md)
- [5.2.1](/releases/release-5.2.1.md)
- [5.2.0](/releases/release-5.2.0.md)

Expand Down