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.14 release notes #5996

Merged
merged 25 commits into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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 @@ -557,6 +557,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.14](/releases/release-4.0.14.md)
+ [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)
Expand Down
133 changes: 133 additions & 0 deletions releases/release-4.0.14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
title: TiDB 4.0.14 Release Notes
---

# TiDB 4.0.14 Release Notes

Release date: July 22, 2021

TiDB version: 4.0.14

## Compatibility Changes

+ TiDB

- For users upgrading from TiDB 4.0, the value of `tidb_multi_statement_mode` is now `OFF`. It is recommended to use the multi-statement feature of your client library instead, see the documentation on `tidb_multi_statement_mode` for additional details. [#25749](https://github.com/pingcap/tidb/pull/25749)
- Upgrade Grafana from version 6.1.16 to version 7.5.7 to solve two security vulnerabilities. See the [Grafana post](https://grafana.com/blog/2020/06/03/grafana-6.7.4-and-7.0.2-released-with-important-security-fix/) for details.

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

+ Backup & Restore (BR)

- Refactor storage.ExternalStorage interface to support compress [#1317](https://github.com/pingcap/br/pull/1317)

## Bug Fixes

+ TiDB

- Generate correct number of rows when all agg funcs are pruned [#26039](https://github.com/pingcap/tidb/pull/26039)
- Executor: fix ifnull bug when arg is enum/set [#26035](https://github.com/pingcap/tidb/pull/26035)
- Fix wrong aggregate pruning for some cases [#26033](https://github.com/pingcap/tidb/pull/26033)
- Fix incorrect result of set type for merge join [#26032](https://github.com/pingcap/tidb/pull/26032)
- Expression: fix IN expr critical bug [#25665](https://github.com/pingcap/tidb/pull/25665)
- Fix panic when 'select ... for update' works on a join operation and the join uses partition table [#25501](https://github.com/pingcap/tidb/pull/25501)
- Fix the issue point get cached plan of prepared statement is incorrectly used by in transaction point get statement. [#24764](https://github.com/pingcap/tidb/pull/24764)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

- Fix potential npe in executeTS during DAG compile [#2377](https://github.com/pingcap/tics/pull/2377)
- Fix the panic issue that occurs when the read load is heavy [#2280](https://github.com/pingcap/tics/pull/2280)
- Fix the issue that TiFlash nodes keep restart because of split failure. [#2218](https://github.com/pingcap/tics/pull/2218)
- Fix the bug that TiFlash can not GC delta data under rare case [#2183](https://github.com/pingcap/tics/pull/2183)
- Fix the potential concurrency problem when clone the shared delta index. [#2032](https://github.com/pingcap/tics/pull/2032)
- Fix the bug that incomplete data may make TiFlash fail to restart [#2002](https://github.com/pingcap/tics/pull/2002)
- Fix the problem that old dmfile is not removed atomically [#1924](https://github.com/pingcap/tics/pull/1924)
- Fix the problem that TiFlash will crash when executing SUBSTRING function with specific argument [#1914](https://github.com/pingcap/tics/pull/1914)
- Fix the issue that cast int as time function in TiFlash's coprocessor may produce wrong result [#1892](https://github.com/pingcap/tics/pull/1892)
solotzg marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

- BR

* Fix parquet parse when parse decimal type [#1276](https://github.com/pingcap/br/pull/1276)
* Fix the bug that lightning returns EOF error when CSV file without '\r\n' at the last line and `strict-format = true`. [#1188](https://github.com/pingcap/br/pull/1188)
* Fix the bug that lightning rebase wrong auto_increment base when the auto_increment field type is float or double. [#1185](https://github.com/pingcap/br/pull/1185)

## 以下 note 未分类。请将以下 note 进行分类 (New feature, Improvements, Bug fixes, Compatibility Changes 四类),并移动到上面对应的标题下。如果某条 note 为多余的,请删除。如果漏抓取了 note,请手动补充

+ TiDB

- Fix a bug which is caused by prior bug fix PR [#26274](https://github.com/pingcap/tidb/pull/26274)
- Change the lock record into put record for the index keys using point/batch point get for update read. [#26223](https://github.com/pingcap/tidb/pull/26223)
- Load: fix load data with non-utf8 can succeed [#26142](https://github.com/pingcap/tidb/pull/26142)
- TiDB now supports the mysql system variable `init_connect` and associated functionality. [#26031](https://github.com/pingcap/tidb/pull/26031)
- Planner: support stable result mode [#26003](https://github.com/pingcap/tidb/pull/26003)
- Enlarge the variable tidb_stmt_summary_max_stmt_count default value from 200 to 3000 [#25872](https://github.com/pingcap/tidb/pull/25872)
- Enable the pushdown of builtin function `json_unquote()` to TiKV. [#25721](https://github.com/pingcap/tidb/pull/25721)
- Planner: select distinct should bypass batchget [#25532](https://github.com/pingcap/tidb/pull/25532)
- Important security issue for handling ALTER USER statements [#25347](https://github.com/pingcap/tidb/pull/25347)
- Fix the bug that `TIKV_REGION_PEERS` table did not have the correct `DOWN` status. [#24918](https://github.com/pingcap/tidb/pull/24918)
- Handle a potential statistic object's memory leak when HTTP api is used [#24650](https://github.com/pingcap/tidb/pull/24650)
- Don't let SPM be affected by charset [#23295](https://github.com/pingcap/tidb/pull/23295)
- Time: parse datatime won't truncate the reluctant string. [#22260](https://github.com/pingcap/tidb/pull/22260)
- Fix a bug that `select into outfile` has no data with year column type [#22185](https://github.com/pingcap/tidb/pull/22185)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ TiKV

- Fix duration calculation panics on certain platforms [#10572](https://github.com/tikv/tikv/pull/10572)
- Fix wrong function cast double to double [#10532](https://github.com/tikv/tikv/pull/10532)
- Ensure panic output is flushed to the log [#10488](https://github.com/tikv/tikv/pull/10488)
- Avoid panic when building a snapshot twice if encryption enabled [#10462](https://github.com/tikv/tikv/pull/10462)
- Copr: fix the wrong arguments type of json_unquote [#10425](https://github.com/tikv/tikv/pull/10425)
- skip clearing callback during gracefully shutdown to avoid breaking ACID in some cases [#10395](https://github.com/tikv/tikv/pull/10395)
- Fix backup threads leak [#10360](https://github.com/tikv/tikv/pull/10360)
- Approximate split range evenly [#10275](https://github.com/tikv/tikv/pull/10275)
- BR now supports S3-compatible storage using virtual-host addressing style. [#10242](https://github.com/tikv/tikv/pull/10242)
- Limit CDC sink memory consumption. [#10147](https://github.com/tikv/tikv/pull/10147)
- Add metrics to see pending pd heartbeats number [#10008](https://github.com/tikv/tikv/pull/10008)
- Change the default merge-check-tick-interval to 2 to speed up the retry of merge process [#9676](https://github.com/tikv/tikv/pull/9676)
- Fix an issue that split may panic and corrupt the metadata if the split process is too slow and region merge is open. [#9584](https://github.com/tikv/tikv/pull/9584)

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

- TiDB Dashboard: Add OIDC based SSO support [#3882](https://github.com/pingcap/pd/pull/3882)
- Reduce the conflict due to multiple scheduler running in same time [#3858](https://github.com/pingcap/pd/pull/3858)
- Fix the issue that the scheduler may appear again even if we have already executed the delete operation [#3825](https://github.com/pingcap/pd/pull/3825)
- Update TiDB Dashboard to v2021.06.15.1 [#3797](https://github.com/pingcap/pd/pull/3797)
- Fix the data race when the scheduler is started before loading TTL configurations [#3773](https://github.com/pingcap/pd/pull/3773)
- Fix pd may get panic during scattering region [#3761](https://github.com/pingcap/pd/pull/3761)
- Fix the issue that leader re-election be slow when there are many stores [#3718](https://github.com/pingcap/pd/pull/3718)
- Fix the priority problems for some kinds of operators [#3703](https://github.com/pingcap/pd/pull/3703)
- Fix the panic issue about remove evict leader scheduler from a nonexistent store [#3680](https://github.com/pingcap/pd/pull/3680)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ Tools

- BR

* Fix the issue that restore from `mysql` schema would failed. [#1142](https://github.com/pingcap/br/pull/1142)
* No realease note [#1131](https://github.com/pingcap/br/pull/1131)
* Fix the issue that lightning panic due to batch kv greater than 4.0g. [#1128](https://github.com/pingcap/br/pull/1128)
* Speed up restore by merging small backup files. [#655](https://github.com/pingcap/br/pull/655)

- Dumpling

* Always split TiDB v3.* tables through tidb rowid to save TiDB's memory. [#306](https://github.com/pingcap/dumpling/pull/306)
* When using Dumpling to export to S3, we no longer require s3:ListBucket permission on the entire bucket, only the data source prefix itself. [#287](https://github.com/pingcap/dumpling/pull/287)

- TiCDC

* Fix extra partition dispatching when adding new table partition. [#2205](https://github.com/pingcap/ticdc/pull/2205)
* Better err msg when PD endpoint missing certificate [#2184](https://github.com/pingcap/ticdc/pull/2184)
* Add `capture-session-ttl` in cdc server config [#2169](https://github.com/pingcap/ticdc/pull/2169)
* Fix panic when TiCDC fails to read `/proc/meminfo` [#2023](https://github.com/pingcap/ticdc/pull/2023)
* Reduce unnecessary memory consumption [#2011](https://github.com/pingcap/ticdc/pull/2011)
* Make sorter IO errors more user-friendly. [#1976](https://github.com/pingcap/ticdc/pull/1976)
* Fix Unified Sorter memory consumption when tables are many. [#1957](https://github.com/pingcap/ticdc/pull/1957)
* Fix a bug that some MySQL connection could leak after MySQL sink meets error and pauses. [#1945](https://github.com/pingcap/ticdc/pull/1945)
* Add concurrency limit to the region incremental scan in kv client. [#1926](https://github.com/pingcap/ticdc/pull/1926)
* Add metrics for table memory consumption [#1884](https://github.com/pingcap/ticdc/pull/1884)
* Owner: When tikv_gc_life_time is greater than gcttl, use tikv_gc_life_time to calculate the lower bound of gcSafePoint. [#1871](https://github.com/pingcap/ticdc/pull/1871)
* Reduce memory malloc in sort heap to avoid too much CPU overhead. [#1862](https://github.com/pingcap/ticdc/pull/1862)
* Fix a bug about resolved ts stopped when move a table. [#1827](https://github.com/pingcap/ticdc/pull/1827)
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 4.0

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