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.1.2 release notes #6500

Merged
merged 38 commits into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
38 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
fb9386f
releases: add TiDB 5.1.2-10-06-33 release notes
ti-srebot Sep 18, 2021
8d2a370
toc
TomShawn Sep 18, 2021
d8bce57
Apply suggestions from code review
TomShawn Sep 18, 2021
06e57ef
Update releases/release-5.1.2.md
TomShawn Sep 18, 2021
01f51a4
Update releases/release-5.1.2.md
TomShawn Sep 18, 2021
a40d5e1
add notes from comments
TomShawn Sep 24, 2021
a3ecb69
add more tidb notes
TomShawn Sep 24, 2021
595252e
Update releases/release-5.1.2.md
qiancai Sep 26, 2021
03c94fe
Apply suggestions from code review
qiancai Sep 26, 2021
822f06b
Apply suggestions from code review
TomShawn Sep 26, 2021
6430852
Update releases/release-5.1.2.md
TomShawn Sep 26, 2021
043e0d6
Update releases/release-5.1.2.md
qiancai Sep 26, 2021
af41e4b
Apply suggestions from code review
qiancai Sep 26, 2021
e797df4
replace pr numbers with issue numbers
qiancai Sep 26, 2021
7901389
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
bb9056e
Apply suggestions from code review
TomShawn Sep 27, 2021
12f01ec
fix
TomShawn Sep 27, 2021
7628831
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
7c6b83e
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
9805f49
Apply suggestions from code review
Liuxiaozhen12 Sep 27, 2021
495172f
Update releases/release-5.1.2.md
Liuxiaozhen12 Sep 27, 2021
48eb24d
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
67e91d4
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
a72c1ac
Update releases/release-5.1.2.md
qiancai Sep 27, 2021
ee9c059
Apply suggestions from code review
qiancai Sep 27, 2021
39bc08f
Apply suggestions from code review
qiancai Sep 27, 2021
2cb972e
Update releases/release-5.1.2.md
qiancai Sep 27, 2021
350bf7f
Update releases/release-5.1.2.md
shichun-0415 Sep 27, 2021
6c7e4f4
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
e47aab7
Update releases/release-5.1.2.md
en-jin19 Sep 27, 2021
d3279c5
Update releases/release-5.1.2.md
TomShawn Sep 27, 2021
8fc30ba
Apply suggestions from code review
en-jin19 Sep 27, 2021
83b8e43
move notes
TomShawn Sep 27, 2021
90678ab
Merge branch 'update-5.1.2-10-06-33' of https://github.com/ti-srebot/…
TomShawn Sep 27, 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 @@ -559,6 +559,7 @@
+ [5.2.1](/releases/release-5.2.1.md)
+ [5.2.0](/releases/release-5.2.0.md)
+ v5.1
+ [5.1.2](/releases/release-5.1.2.md)
+ [5.1.1](/releases/release-5.1.1.md)
+ [5.1.0](/releases/release-5.1.0.md)
+ v5.0
Expand Down
165 changes: 165 additions & 0 deletions releases/release-5.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
---
title: TiDB 5.1.2 Release Notes
---

# TiDB 5.1.2 Release Notes

Release Date: September 27, 2021

TiDB version: 5.1.2

## Improvements

+ TiDB

- Trigger auto-analyze based on histogram row count [#26708](https://github.com/pingcap/tidb/pull/26708)

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

- ```release-note [#2658](https://github.com/pingcap/tics/pull/2658)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Support pushing down ROUND(X) to TiFlash. [#2611](https://github.com/pingcap/tics/pull/2611)
- support function DATE() pushed down to tiflash [#2602](https://github.com/pingcap/tics/pull/2602)
- support functions of ADDDATE() and DATE_ADD() pushed down to tiflash [#2591](https://github.com/pingcap/tics/pull/2591)
- retry when meeting stablish conn fails [#2570](https://github.com/pingcap/tics/pull/2570)
- Support pushing down MOD(N, M) to TiFlash. [#2560](https://github.com/pingcap/tics/pull/2560)
- Add Grafana panels for write throughput per instance [#2544](https://github.com/pingcap/tics/pull/2544)
- [#2345](https://github.com/pingcap/tics/pull/2345)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

+ TiDB

- Fix wrong index hash join when hash col is enum. [#28081](https://github.com/pingcap/tidb/pull/28081)
- Fix a batch client bug that recycle idle connection may block sending requests in some rare cases. [#27678](https://github.com/pingcap/tidb/pull/27678)
- Keep the overflow check logic same with mysql [#26725](https://github.com/pingcap/tidb/pull/26725)
- Fix #26147 that `tidb` returns an `unknow` error with no message while it should return the error that contains `pd is timeout`. [#26682](https://github.com/pingcap/tidb/pull/26682)
- Fix wrong charset and collation for case when function [#26673](https://github.com/pingcap/tidb/pull/26673)
- Fix the issue that greatest(datetime) union null returns empty string [#26566](https://github.com/pingcap/tidb/pull/26566)

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

- Fix the potential issue of data inconsistency after crashes when deployed on multi-disks [#2776](https://github.com/pingcap/tics/pull/2776)
- Please add a release note, or a 'None' if it is not needed. [#2762](https://github.com/pingcap/tics/pull/2762)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Please add a release note, or a 'None' if it is not needed. [#2710](https://github.com/pingcap/tics/pull/2710)
- Fix concurrency between init store and DDL. [#2693](https://github.com/pingcap/tics/pull/2693)
- ```release-note [#2673](https://github.com/pingcap/tics/pull/2673)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix the bug that filters unexpected data if the query contains "constant" "<"/"<="/">"/">=" "column" [#2635](https://github.com/pingcap/tics/pull/2635)
- Fix an overflow bug in decimal MOD(N, M). [#2609](https://github.com/pingcap/tics/pull/2609)
- Fix the potential panic when applying Snapshot with multiple DDL operations [#2606](https://github.com/pingcap/tics/pull/2606)
- Fix inaccurate store size on tiflash metric under heavy write scenario [#2598](https://github.com/pingcap/tics/pull/2598)
- Fix the potential issue that TiFlash cannot GC the delta data after running for a long time [#2337](https://github.com/pingcap/tics/pull/2337)

+ PD

- Fix the bug that PD would not fix down-peer in time. [#4083](https://github.com/tikv/pd/pull/4083)
- Fix an issue where data is not stored when using max-replicas or location-labels to indirectly update default placement rule [#3915](https://github.com/tikv/pd/pull/3915)
- Fix the bug that PD may panic during scaling out TiKV. [#3911](https://github.com/tikv/pd/pull/3911)

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

+ Backup & Restore (BR)

- Fix the bug that in concurrency mode, pd schedulers may not be restored if one or more lightning failed. [#1422](https://github.com/pingcap/br/pull/1422)
- Fix the bug that lightning local backend may met checksum mismatch error due to data loss. [#1416](https://github.com/pingcap/br/pull/1416)

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

+ TiDB

- Fix `can not found column in Schema column` error for mpp queries [#28148](https://github.com/pingcap/tidb/pull/28148)
- Fix a bug that TiDB may crash when TiFlash is shutting down. [#28139](https://github.com/pingcap/tidb/pull/28139)
- This reverts commit d4cd12fe422fb18b6012607ee18b6acca40d9225. [#28091](https://github.com/pingcap/tidb/pull/28091)
qiancai marked this conversation as resolved.
Show resolved Hide resolved
- planner: fix the problem of using `enum like 'x%'` to build the wrong range [#28066](https://github.com/pingcap/tidb/pull/28066)
- None. [#27925](https://github.com/pingcap/tidb/pull/27925)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- push down mod() to TiFlash. [#27865](https://github.com/pingcap/tidb/pull/27865)
- Please add a release note, or a 'None' if it is not needed. [#27631](https://github.com/pingcap/tidb/pull/27631)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- fix expression rewrite makes between expr infers wrong collation. [#27549](https://github.com/pingcap/tidb/pull/27549)
- execution: fix cte dead lock when used with IndexLookupJoin [#27536](https://github.com/pingcap/tidb/pull/27536)
- Fix a bug that retryable deadlocks are incorrectly recorded into `INFORMATION_SCHEMA.DEADLOCKS` table. [#27535](https://github.com/pingcap/tidb/pull/27535)
- make `group_concat` function consider the collation [#27529](https://github.com/pingcap/tidb/pull/27529)
- Fix bug that count disctinct on multi-columns return wrong result when new collation is on. [#27506](https://github.com/pingcap/tidb/pull/27506)
- Fix an issue that the `TABLESAMPLE` query result from partitioned tables is not sorted as expected. [#27411](https://github.com/pingcap/tidb/pull/27411)
- expression: fix extract bug when argument is a negative duration [#27367](https://github.com/pingcap/tidb/pull/27367)
- The undocumented `/debug/sub-optimal-plan` HTTP API has been removed. [#27265](https://github.com/pingcap/tidb/pull/27265)
- fix wrong selection push down when having above agg [#27258](https://github.com/pingcap/tidb/pull/27258)
qiancai marked this conversation as resolved.
Show resolved Hide resolved
- fix a bug that query on hash partition table return wrong reslut [#27164](https://github.com/pingcap/tidb/pull/27164)
- executor: fix unexpected behavior when casting invalid string to date [#27112](https://github.com/pingcap/tidb/pull/27112)
- fix a bug that creates partition fail if `NO_UNSIGNED_SUBTRACTION` is set. [#27053](https://github.com/pingcap/tidb/pull/27053)
- Please add a release note, or a 'None' if it is not needed. [#26969](https://github.com/pingcap/tidb/pull/26969)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix an issue that NO_ZERO_IN_DATE does not work on the default values. [#26904](https://github.com/pingcap/tidb/pull/26904)
- store/copr: block the tiflash node for a period when it fails before. [#26897](https://github.com/pingcap/tidb/pull/26897)
- Fix then bug if the CTE is referenced more than once. [#26661](https://github.com/pingcap/tidb/pull/26661)
- planner: fix CTE bug when MergeJoin is used [#26658](https://github.com/pingcap/tidb/pull/26658)
- Fix a bug 'select for update' does not correctly lock the data when a normal table join a partition table. [#26631](https://github.com/pingcap/tidb/pull/26631)
- Fix a panic when select for update on a normal table join a partition table [#26563](https://github.com/pingcap/tidb/pull/26563)
- Fix the issue that point get does not use lite version resolve lock [#26562](https://github.com/pingcap/tidb/pull/26562)
qiancai marked this conversation as resolved.
Show resolved Hide resolved

+ TiKV

- Fix bug when TiKV upgrade from 3.0 to 4.x and 5.x but there are still some files left by import. [#10912](https://github.com/tikv/tikv/pull/10912)
- RaftStore Snapshot GC fix: fix the issue that snapshot GC missed GC snapshot files when there's one snapshot file failed to be GC-ed. [#10873](https://github.com/tikv/tikv/pull/10873)
- TiKV coprocessor slow log will only consider time spent on processing the request.
- Drop log instead of blocking threads when slogger thread is overloaded and queue is filled up. [#10865](https://github.com/tikv/tikv/pull/10865)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Bug fix: fix an unexpected panic when exceeds deadline on processing copr requests. [#10856](https://github.com/tikv/tikv/pull/10856)
- Fix TiKV panic when enable Titan and upgrade from pre-5.0 version
- Fix newer TiKV can't rollback to 5.0.x [#10842](https://github.com/tikv/tikv/pull/10842)
- Fix TiKV delete files before it ingests to RocksDB. [#10741](https://github.com/tikv/tikv/pull/10741)
- Support changing CDC configs dynamically [#10686](https://github.com/tikv/tikv/pull/10686)
- Reduce resolved ts message size to save network bandwidth. [#10679](https://github.com/tikv/tikv/pull/10679)
- Fix the resolve failures caused by the left pessimisic locks. [#10653](https://github.com/tikv/tikv/pull/10653)
- ```release-note [#10621](https://github.com/tikv/tikv/pull/10621)
Copy link
Contributor

Choose a reason for hiding this comment

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

image

TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ PingCAP/TiFlash

- Please add a release note, or a 'None' if it is not needed. [#2819](https://github.com/pingcap/tics/pull/2819)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Support INET6_ATON and INET6_NTOA in TiFlash. [#2624](https://github.com/pingcap/tics/pull/2624)
- Support INET_ATON and INET_NTOA in TiFlash. [#2613](https://github.com/pingcap/tics/pull/2613)
- update client to fix race bug [#2583](https://github.com/pingcap/tics/pull/2583)
- [#2552](https://github.com/pingcap/tics/pull/2552)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- expand streams after aggregation [#2537](https://github.com/pingcap/tics/pull/2537)
- Improve the mpp cancel process to cancel the mpp task ASAP [#2518](https://github.com/pingcap/tics/pull/2518)
- Fix the bug may cause metrics to display error value. [#2469](https://github.com/pingcap/tics/pull/2469)

+ PD

- allow empty region to be scheduled and use a sperate tolerance config in scatter range scheduler [#4117](https://github.com/tikv/pd/pull/4117)
- None. [#3976](https://github.com/tikv/pd/pull/3976)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Improved the performance of synchronizing Region information between PDs. [#3933](https://github.com/tikv/pd/pull/3933)

+ Tools

+ Backup & Restore (BR)

- fix the bug that the average speed isn't accurate in backup and restore [#1412](https://github.com/pingcap/br/pull/1412)
- [#1375](https://github.com/pingcap/br/pull/1375)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ Dumpling

- fix pending on show table status in some mysql version [#333](https://github.com/pingcap/dumpling/pull/333)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Support for backing up MySQL compatible databases that don't support START TRANSACTION ... WITH CONSISTENT SNAPSHOT
- Support for backing up MySQL compatible databases that don't support SHOW CREATE TABLE [#328](https://github.com/pingcap/dumpling/pull/328)

+ TiCDC

- Fix json encoding could panic when processing a string type value in some cases. [#2783](https://github.com/pingcap/ticdc/pull/2783)
- Fix a bug that multiple processors could write the same table when this table is re-scheduling [#2729](https://github.com/pingcap/ticdc/pull/2729)
- Fix OOM when TiCDC captures too many regions [#2725](https://github.com/pingcap/ticdc/pull/2725)
- Fix gRPC keepalive error when memory pressure is high. [#2720](https://github.com/pingcap/ticdc/pull/2720)
- Optimize memory management when unified sorter is using memory to sort. [#2712](https://github.com/pingcap/ticdc/pull/2712)
- Please add a release note.
- If you don't think this PR needs a release note then fill it with `None`. [#2683](https://github.com/pingcap/ticdc/pull/2683)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Set compatible version from 5.1.0-alpha to 5.2.0-alpha [#2659](https://github.com/pingcap/ticdc/pull/2659)
- Fix a bug that causes TiCDC to panic on an unsigned tinyint [#2656](https://github.com/pingcap/ticdc/pull/2656)
- Fix open protocol, don't output an empty value when there is no change in one transaction. [#2621](https://github.com/pingcap/ticdc/pull/2621)
- Fixed a bug in DDL handling when the owner restarts. [#2607](https://github.com/pingcap/ticdc/pull/2607)
- Prohibit operating TiCDC clusters across major and minor versions [#2599](https://github.com/pingcap/ticdc/pull/2599)
- Fix a bug in metadata management [#2559](https://github.com/pingcap/ticdc/pull/2559)
- Add a global gRPC connection pool and share gRPC connections among kv clients. [#2534](https://github.com/pingcap/ticdc/pull/2534)
- `None`. [#2521](https://github.com/pingcap/ticdc/pull/2521)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix a bug that multiple processors could write the same table when this table is re-scheduling [#2493](https://github.com/pingcap/ticdc/pull/2493)
- Optimize workerpool for fewer goroutines when concurrency is high. [#2488](https://github.com/pingcap/ticdc/pull/2488)
- Fix a bug that owner could meet ErrSchemaStorageTableMiss error and reset a changefeed by accident. [#2459](https://github.com/pingcap/ticdc/pull/2459)
- fix the bug that changefeed cannot be removed if meet GcTTL Exceeded Error [#2454](https://github.com/pingcap/ticdc/pull/2454)
- fix a bug where synchronizing large tables to cdclog failed. [#2446](https://github.com/pingcap/ticdc/pull/2446)
- Fix CLI back-compatibility [#2414](https://github.com/pingcap/ticdc/pull/2414)
- Reduce goroutine usage when a table's region transfer away from a TiKV node [#2378](https://github.com/pingcap/ticdc/pull/2378)
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 5.1

- [5.1.2](/releases/release-5.1.2.md)
- [5.1.1](/releases/release-5.1.1.md)
- [5.1.0](/releases/release-5.1.0.md)

Expand Down