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 v4.0.11 release notes #4761

Merged
merged 27 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2817cc9
update v4.0.11 release notes at 2021-02-01T10:14:13
ti-srebot Feb 1, 2021
56dd5b0
add toc
TomShawn Feb 1, 2021
0a18a9b
Merge branch 'master' into update-4.0.11
TomShawn Feb 1, 2021
75a0bf1
add TiKV and TiFlash notes
TomShawn Feb 2, 2021
613acfc
Merge branch 'master' into update-4.0.11
TomShawn Feb 3, 2021
fc71226
add a tiflash note
TomShawn Feb 3, 2021
6821e35
add tidb, pd and tools notes
TomShawn Feb 3, 2021
31d70b0
language review
TomShawn Feb 3, 2021
ea2505a
Update release-4.0.11.md
TomShawn Feb 3, 2021
c0f399c
Update release-4.0.11.md
TomShawn Feb 3, 2021
b1f5691
Update release-4.0.11.md
TomShawn Feb 4, 2021
1967339
Merge branch 'master' into update-4.0.11
TomShawn Feb 4, 2021
b0ae5b0
Merge branch 'master' into update-4.0.11
TomShawn Feb 20, 2021
82eaaaf
Update releases/release-4.0.11.md
TomShawn Feb 22, 2021
34db05e
Update releases/release-4.0.11.md
TomShawn Feb 22, 2021
f1e6922
Update releases/release-4.0.11.md
TomShawn Feb 24, 2021
f38662c
Update releases/release-4.0.11.md
TomShawn Feb 24, 2021
f9f8cf6
update release date
TomShawn Feb 26, 2021
2ae1046
Merge branch 'master' into update-4.0.11
TomShawn Feb 26, 2021
90c6862
remove TiFlash PRs
TomShawn Feb 26, 2021
e0a53f6
Update releases/release-4.0.11.md
TomShawn Feb 26, 2021
34686c2
address comments from qiancai
TomShawn Feb 26, 2021
a346e97
Merge branch 'master' into update-4.0.11
TomShawn Feb 26, 2021
e5773b6
update a note
TomShawn Feb 26, 2021
0b5c008
update a note
TomShawn Feb 26, 2021
aa416fb
update a note
TomShawn Feb 26, 2021
073a586
Update releases/release-4.0.11.md
TomShawn Feb 26, 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 @@ -525,6 +525,7 @@
+ v5.0
+ [5.0.0-rc](/releases/release-5.0.0-rc.md)
+ v4.0
+ [4.0.11](/releases/release-4.0.11.md)
+ [4.0.10](/releases/release-4.0.10.md)
+ [4.0.9](/releases/release-4.0.9.md)
+ [4.0.8](/releases/release-4.0.8.md)
Expand Down
150 changes: 150 additions & 0 deletions releases/release-4.0.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
---
title: TiDB 4.0.11 Release Notes
---

# TiDB 4.0.11 Release Notes

Release date: February 4, 2021

TiDB version: 4.0.11

## Compatibility Changes

## New Features

+ TiKV

- Add `utf8mb4_unicode_ci` implement [#9577](https://github.com/tikv/tikv/pull/9577)
- Add `cast_year_as_time` [#9299](https://github.com/tikv/tikv/pull/9299)

+ TiFlash

- A coprocessor thread pool was added to queue coprocessor requests for execution, which can avoid OOM in some cases. Added two configs `cop_pool_size` and `batch_cop_pool_size`, default `NumOfPhysicalCores*2` [#1312](https://github.com/pingcap/tics/pull/1312)

## Improvements

+ TiDB

- Reorder inner joins simplified from outer joins [#22402](https://github.com/pingcap/tidb/pull/22402)

+ TiKV

- Add server info metrics for DBasS [#9591](https://github.com/tikv/tikv/pull/9591)
- Grafana dashboards support multiple clusters [#9572](https://github.com/tikv/tikv/pull/9572)
- Report RocksDB metrics to TiDB [#9316](https://github.com/tikv/tikv/pull/9316)
- Record suspend time for coprocessor task [#9277](https://github.com/tikv/tikv/pull/9277)
- Add key and size threshold for load-base-split [#9354](https://github.com/tikv/tikv/pull/9354)
- Check whether file exist before importing [#9544](https://github.com/tikv/tikv/pull/9544)
- Improve Fast Tune panels [#9180](https://github.com/tikv/tikv/pull/9180)

+ TiFlash

- Optimize the performance of date_format function in TiFlash [#1339](https://github.com/pingcap/tics/pull/1339)
- Optimize memory consumption of handling ingest SST

## Bug Fixes

+ TiDB

- Expression: handle duration type infer in least and greatest [#22580](https://github.com/pingcap/tidb/pull/22580)
- Fixed LIKE expressions when a single character (`_`) wildcard follows a multiple character wildcard (`%`). [#22575](https://github.com/pingcap/tidb/pull/22575)
- Expression: fix type infer for TiDB's builtin compare(least and greatest) [#22562](https://github.com/pingcap/tidb/pull/22562)
- Fix a bug that makes the `like` function get the wrong result if pattern string is a Unicode string [#22529](https://github.com/pingcap/tidb/pull/22529)
- Fix a bug that point get query does not get the snapshot data when the `@@tidb_snapshot` variable is set. [#22527](https://github.com/pingcap/tidb/pull/22527)
- Avoid potential panic when generating hints from joins [#22518](https://github.com/pingcap/tidb/pull/22518)
- Convert string to MySQL BIT correctly [#22420](https://github.com/pingcap/tidb/pull/22420)
- Fix the 'index out of range ' issue when insert values to `tidb_rowid`. [#22359](https://github.com/pingcap/tidb/pull/22359)
- Fix a bug about incorrectly reuse cached plan [#22353](https://github.com/pingcap/tidb/pull/22353)
- Fix runtime panic in WEIGHT_STRING function when the length of binary/char is too large [#22332](https://github.com/pingcap/tidb/pull/22332)
- Forbidden the invalid generated column with incorrect argument count. [#22174](https://github.com/pingcap/tidb/pull/22174)
- Show process info when building plan. [#22148](https://github.com/pingcap/tidb/pull/22148)
- Fix issue of runtime stats of index lookup reader doesn't accurate. [#22136](https://github.com/pingcap/tidb/pull/22136)
- Add a cache for memory info when the cluster is deployed in container. [#22116](https://github.com/pingcap/tidb/pull/22116)
- Fix issue of decode plan error cause by without escape special char. [#22022](https://github.com/pingcap/tidb/pull/22022)
- Report error for invalid window specifications which are not used in window functions. [#21976](https://github.com/pingcap/tidb/pull/21976)
- Throw error when prepared statement is execute, deallocate or prepare [#21972](https://github.com/pingcap/tidb/pull/21972)
- Fix `insert ignore` into not exists partition should not report error [#21971](https://github.com/pingcap/tidb/pull/21971)
- Unify the plan code for explain result and slow log. [#21964](https://github.com/pingcap/tidb/pull/21964)
- Fix unknown columns in join using below agg [#21957](https://github.com/pingcap/tidb/pull/21957)
- Fix wrong type inferring for ceiling function. [#21936](https://github.com/pingcap/tidb/pull/21936)
- Double type column from table should ignore its decimal [#21916](https://github.com/pingcap/tidb/pull/21916)
- Fix correlated aggregates which should be evaluated in outer query instead of in subqueries. [#21877](https://github.com/pingcap/tidb/pull/21877)
- Report error for json object with key length >= 65536. [#21870](https://github.com/pingcap/tidb/pull/21870)
- Fix compatibility issue with MySQL for function `dayname` [#21850](https://github.com/pingcap/tidb/pull/21850)
- When using input types longer than blob (such as a longblob or longtext), the function `to_base64` always returned `NULL`. It now returns the correct value. [#21813](https://github.com/pingcap/tidb/pull/21813)
- Fix the fail when we compare multi fields in the subquery [#21808](https://github.com/pingcap/tidb/pull/21808)
- Fix compare float64 with float64 in json [#21785](https://github.com/pingcap/tidb/pull/21785)
- Fix compare object json type [#21718](https://github.com/pingcap/tidb/pull/21718)
- Fix the coercibility of the cast function [#21714](https://github.com/pingcap/tidb/pull/21714)
- Fix unexpected panic when using IF function [#21711](https://github.com/pingcap/tidb/pull/21711)
- Fix #20161, json search result null is not compatible with mysql [#21700](https://github.com/pingcap/tidb/pull/21700)
- Check for only_full_group_by in ORDER BY and HAVING for query without group clause. [#21697](https://github.com/pingcap/tidb/pull/21697)
- Fix the compatibility of extract day_time unit functions [#21676](https://github.com/pingcap/tidb/pull/21676)
- Fix LEAD and LAG's default value can not adapt to field type [#21665](https://github.com/pingcap/tidb/pull/21665)
- TiDB now checks to make sure that the `LOAD DATA` statement can only load data into base tables. [#21638](https://github.com/pingcap/tidb/pull/21638)
- Handle invalid argument for addtime and subtime function [#21635](https://github.com/pingcap/tidb/pull/21635)
- Use “round to nearest even” rule instead of “round half away from zero” for approximate-value numbers [#21628](https://github.com/pingcap/tidb/pull/21628)
- The single-argument `WEEK()` call now recognize the global `@@default_week_format` even when the session one is not set explicitly. [#21623](https://github.com/pingcap/tidb/pull/21623)

+ TiKV

- Fix failed to build TiKV with PROST=1 [#9604](https://github.com/tikv/tikv/pull/9604)
- Fix unmatched memory information [#9589](https://github.com/tikv/tikv/pull/9589)
- Fix the issue that end key of a partial rawkv-restore range is inclusive [#9583](https://github.com/tikv/tikv/pull/9583)
- Fix the issue that when loading old value for CDC's incremental scan on a key where there's a rolled back transaction, in some cases TiKV may panic. [#9569](https://github.com/tikv/tikv/pull/9569)
- Fix old value config glitch when changefeeds with different settings connect to one region [#9565](https://github.com/tikv/tikv/pull/9565)
- Fix a crash problem when running a TiKV on a machine with a network interface lacking MAC address since v4.0.9. [#9516](https://github.com/tikv/tikv/pull/9516)
- Fix the problem that TiKV OOM when we backup a huge region. [#9448](https://github.com/tikv/tikv/pull/9448)
- Fix `region-split-check-diff` can not be customized [#9530](https://github.com/tikv/tikv/pull/9530)
- Fix TiKV panicked when system time go back [#9542](https://github.com/tikv/tikv/pull/9542)

+ PD

- Fix the issue that member health metrics not correct [#3368](https://github.com/pingcap/pd/pull/3368)
- If a tombstone store still has peers, make it cannot be removed. [#3352](https://github.com/pingcap/pd/pull/3352)

+ TiFlash

- Fix the bug that `min/max` result is wrong for decimal types
- Fix the bug that TiFlash may crash when reading data [#1358](https://github.com/pingcap/tics/pull/1358)
- Fix the issue that some data written after DDL operation may be lost after data compaction [#1350](https://github.com/pingcap/tics/pull/1350)

## 请判断以下 note 是否为本次发版所需。如果是,请移动到以上分类中或指出其所属分类。如果不是,请删除相应的 note

+ TiDB

- Incorporate unicode_ci into constant propagation [#22614](https://github.com/pingcap/tidb/pull/22614)
- Fix an issue that cause wrong collation and coercibility [#22602](https://github.com/pingcap/tidb/pull/22602)
- Fix an issue that may get wrong collation result [#22599](https://github.com/pingcap/tidb/pull/22599)
- Refine `CollationStrictness` to support incompatible strictnessship [#22582](https://github.com/pingcap/tidb/pull/22582)
- Implement `utf8_unicode_ci` and `utf8mb4_unicode_ci` collation [#22558](https://github.com/pingcap/tidb/pull/22558)
- Metrics: grafana dashboards support multiple clusters [#22534](https://github.com/pingcap/tidb/pull/22534)
- Fix a bug that the `like` function returns the wrong result when using collation [#22531](https://github.com/pingcap/tidb/pull/22531)
- TiDB 4.0.9 fixed a security issue, where TiDB incorrectly permitted multiple statements to be executed in one `COM_QUERY` packet, leading to increased risk of SQL injection. To provide backwards compatibility for applications that depend on this behavior, a new option `tidb_multi_statement_mode` has been added. Assuming you understand the security risks, you can revert to the 4.0.8 by executing `SET GLOBAL tidb_multi_statement_mode='ON'`. The default behavior of `tidb_multi_statement_mode` also relaxes the error introduced in 4.0.9 to a warning. It is intended to be changed to an error again in a future release. [#22468](https://github.com/pingcap/tidb/pull/22468)
- Metrics slow query is divided into internal and general [#22405](https://github.com/pingcap/tidb/pull/22405)
- Add `utf8_unicode_ci` and `utf8mb4_unicode_ci` interface. [#22099](https://github.com/pingcap/tidb/pull/22099)
- Error message redact normalize. [#21889](https://github.com/pingcap/tidb/pull/21889) [#21891](https://github.com/pingcap/tidb/pull/21891) [#22669](https://github.com/pingcap/tidb/pull/22669)

+ PD

- Fix the issue that the store limit cannot be persisted [#3403](https://github.com/pingcap/pd/pull/3403)
- Fix the limit constriction of the scatter range scheduler [#3401](https://github.com/pingcap/pd/pull/3401)
- Metrics: grafana dashboards support multiple clusters [#3398](https://github.com/pingcap/pd/pull/3398)

+ Tools

- BR

* Fix the issue that in rawkv mode, the end key of restoring range may be included, which is expected to be exclusive. [#726](https://github.com/pingcap/br/pull/726)

- TiCDC

* Fix atomicity of transactions is broken in the downstream [#1375](https://github.com/pingcap/ticdc/pull/1375)
* Fix a bug that kv client may skip to recreate event feed receiving routine by accident. [#1373](https://github.com/pingcap/ticdc/pull/1373)
* Adjust default sort-dir and add warnings about choice of sort-dir [#1372](https://github.com/pingcap/ticdc/pull/1372)
* Check update safepoint error. [#1367](https://github.com/pingcap/ticdc/pull/1367)
* Fix potential data loss if a processor crashes when starting up a table. [#1363](https://github.com/pingcap/ticdc/pull/1363)
* Fix metric `ticdc_processor_num_of_tables` and `ticdc_processor_table_resolved_ts` are properly updated when processor removes a table or the processor itself stops. [#1351](https://github.com/pingcap/ticdc/pull/1351)
* Metrics: grafana dashboards support multiple clusters [#1350](https://github.com/pingcap/ticdc/pull/1350)
* Fix a bug that TiCDC server could hang when processing a new changefeed with invalid sort-engine parameter [#1326](https://github.com/pingcap/ticdc/pull/1326)
* Fix the output in changefeed out of order [#1323](https://github.com/pingcap/ticdc/pull/1323)
1 change: 1 addition & 0 deletions releases/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ aliases: ['/docs/dev/releases/release-notes/','/docs/dev/releases/rn/']

## 4.0

- [4.0.11](/releases/release-4.0.11.md)
- [4.0.10](/releases/release-4.0.10.md)
- [4.0.9](/releases/release-4.0.9.md)
- [4.0.8](/releases/release-4.0.8.md)
Expand Down