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 v4.0.9 release notes #4294

Merged
merged 43 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d27e7de
update v4.0.9 release notes at 2020-11-30T12:05:26
ti-srebot Nov 30, 2020
9f6e275
add to TOC, release-notes.md
TomShawn Nov 30, 2020
4f51817
update v4.0.9 release notes at 2020-11-30T13:17:16
ti-srebot Nov 30, 2020
b03ec10
Merge branch 'update-4.0.9' of https://github.com/ti-srebot/docs into…
TomShawn Nov 30, 2020
b925a5c
update
TomShawn Nov 30, 2020
2f2062f
Apply suggestions from JaySon-Huang
TomShawn Nov 30, 2020
68de6db
add tools
TomShawn Nov 30, 2020
62846ac
update tidb notes
TomShawn Nov 30, 2020
341657f
add PD notes
TomShawn Dec 1, 2020
1e8985e
Update releases/release-4.0.9.md
TomShawn Dec 1, 2020
49e3f11
add TiKV notes
TomShawn Dec 1, 2020
56779fb
Merge branch 'master' into update-4.0.9
TomShawn Dec 1, 2020
dfaaab2
Update releases/release-4.0.9.md
TomShawn Dec 1, 2020
efcc240
change release date
TomShawn Dec 2, 2020
db3dee8
Update releases/release-4.0.9.md
TomShawn Dec 4, 2020
6725f15
Update releases/release-4.0.9.md
TomShawn Dec 10, 2020
7590037
refine language
TomShawn Dec 11, 2020
6b47116
refine language
TomShawn Dec 11, 2020
dc31b44
refine language
TomShawn Dec 11, 2020
370efa0
change date
TomShawn Dec 11, 2020
3033d51
Merge branch 'master' into update-4.0.9
TomShawn Dec 14, 2020
09f64f0
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
6ad3702
Merge branch 'master' into update-4.0.9
TomShawn Dec 14, 2020
0a1a8da
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
b70ffb0
Apply suggestions from code review
TomShawn Dec 14, 2020
2a20831
refine language and format
TomShawn Dec 14, 2020
e488bc7
Merge branch 'master' into update-4.0.9
TomShawn Dec 14, 2020
ca6c4b8
Update releases/release-4.0.9.md
TomShawn Dec 14, 2020
0e28369
add new notes from ichn-hu, Win-Man, and you06
TomShawn Dec 15, 2020
50e4697
change date
TomShawn Dec 15, 2020
3caf11f
add 6 notes from bobotu, amyangfei and tangenta
TomShawn Dec 17, 2020
611ff9e
Merge branch 'master' into update-4.0.9
TomShawn Dec 18, 2020
502c5e4
Update release-4.0.9.md
TomShawn Dec 18, 2020
f5a2c1d
add a ticdc note
TomShawn Dec 18, 2020
a7da86a
Merge branch 'master' into update-4.0.9
TomShawn Dec 18, 2020
6a5143e
Update release-4.0.9.md
TomShawn Dec 18, 2020
456b3d4
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
95d4627
Update releases/release-4.0.9.md
TomShawn Dec 18, 2020
46d4e8b
add tikv notes from jay
TomShawn Dec 18, 2020
0215432
add tidb dashboard related notes
TomShawn Dec 18, 2020
79305cf
Merge branch 'master' into update-4.0.9
TomShawn Dec 18, 2020
87e33d9
Merge branch 'master' into update-4.0.9
TomShawn Dec 21, 2020
3828433
Update releases/release-4.0.9.md
TomShawn Dec 21, 2020
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 @@ -529,6 +529,7 @@
+ [All Releases](/releases/release-notes.md)
+ [TiDB Roadmap](/roadmap.md)
+ v4.0
+ [4.0.9](/releases/release-4.0.9.md)
+ [4.0.8](/releases/release-4.0.8.md)
+ [4.0.7](/releases/release-4.0.7.md)
+ [4.0.6](/releases/release-4.0.6.md)
Expand Down
172 changes: 172 additions & 0 deletions releases/release-4.0.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
---
title: TiDB 4.0.9 Release Notes
---

# TiDB 4.0.9 Release Notes

Release date: December 3, 2020
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

TiDB version: 4.0.9

## New Features

+ TiFlash

- Support storing the latest data of the storage engine on multiple disks [#1159](https://github.com/pingcap/tics/pull/1159)

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

+ TiDB

- Ban (index) merge join heuristically when convert equal conditions to other conditions. [#21146](https://github.com/pingcap/tidb/pull/21146)
- Differentiate types for user variables [#21107](https://github.com/pingcap/tidb/pull/21107)
- Allow set GOGC in config file. [#20922](https://github.com/pingcap/tidb/pull/20922)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

- Add tag to split command to trace its source [#8936](https://github.com/tikv/tikv/pull/8936)

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

- Reduce the latency of replica reads [#1236](https://github.com/pingcap/tics/pull/1236)
- Refine TiFlash's error message [#1231](https://github.com/pingcap/tics/pull/1231)
- Limit the memory usage of cache data under huge volume data. [#1229](https://github.com/pingcap/tics/pull/1229)
- [#1227](https://github.com/pingcap/tics/pull/1227)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Add a metric for the number of handling coprocessor tasks [#1183](https://github.com/pingcap/tics/pull/1183)

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

+ Backup & Restore (BR)

- BR no longer accepts --checksum false in command line, which did not disable checksum. The correct usage always include the = sign: --checksum=false [#588](https://github.com/pingcap/br/pull/588)
- Support change PD config temporary [#596](https://github.com/pingcap/br/pull/596)
- Support analyze table after restore [#622](https://github.com/pingcap/br/pull/622)
- Retry for read index not ready and proposal in merging mode [#626](https://github.com/pingcap/br/pull/626)

+ TiCDC

- Metrics: add alert for tikv hibernate regions [#1120](https://github.com/pingcap/ticdc/pull/1120)
- Reduce memory usage in schema storage by avoiding table info replication [#1127](https://github.com/pingcap/ticdc/pull/1127)

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

- Retry dumping on failed chunks [#182](https://github.com/pingcap/dumpling/pull/182)
- Support configuring both -F and -r arguments at the same time [#177](https://github.com/pingcap/dumpling/pull/177)
- Exclude system databases in --filter parameter by default [#194](https://github.com/pingcap/dumpling/pull/194)
- Support --transactional-consistency parameter and support rebuild mysql connections during retry [#199](https://github.com/pingcap/dumpling/pull/199)

+ TiDB Lightning

- Filter out all system schemas by default [#459](https://github.com/pingcap/tidb-lightning/pull/459)
- Support set a default value for auto random primary key for local/importer backend [#457](https://github.com/pingcap/tidb-lightning/pull/457)
- Use range properties to make range split more precise with local backend [#422](https://github.com/pingcap/tidb-lightning/pull/422)
- `tikv-importer.region-split-size`, `mydumper.read-block-size`, `mydumper.batch-size` and `mydumper.max-region-size` can now accept human-readable format in the form "2.5 GiB" [#471](https://github.com/pingcap/tidb-lightning/pull/471)

+ TiDB Binlog

- Exit Drainer process with non-zero code if upstream PD is down or apply DDL/DML to downstream failed [#1012](https://github.com/pingcap/tidb-binlog/pull/1012)

## Bug Fixes

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

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Fix incorrect results when using a prefix index with OR condition [#21287](https://github.com/pingcap/tidb/pull/21287)
- Fix a bug cause panic when retry is enable. [#21285](https://github.com/pingcap/tidb/pull/21285)
- Fix a bug that checks partition definition according to column type [#21273](https://github.com/pingcap/tidb/pull/21273)
- Fix a bug that hash type partition does not check partition name is unique [#21257](https://github.com/pingcap/tidb/pull/21257)
- Fix unexpected error when `INSERT` meets index join in some cases. [#21249](https://github.com/pingcap/tidb/pull/21249)
- Fix insert value into hash partition table which not int [#21238](https://github.com/pingcap/tidb/pull/21238)
- Fix Bigint unsigned column value in CASE WHEN operator is converted to bigint signed #9869 [#21236](https://github.com/pingcap/tidb/pull/21236)
- Fix a bug that index-hash-join and index-merge-join doesn't consider collation [#21219](https://github.com/pingcap/tidb/pull/21219)
- Fix issue of the query result of slow_query maybe miss some rows. [#21211](https://github.com/pingcap/tidb/pull/21211)
- `DELETE` may not delete data correctly when the database name is not in pure lower representation. [#21206](https://github.com/pingcap/tidb/pull/21206)
- Raise an error when preparing the `load data` statement. [#21199](https://github.com/pingcap/tidb/pull/21199)
- Fix a bug that partition table does not consider collation in `create table` and `select` sentence. [#21181](https://github.com/pingcap/tidb/pull/21181)
- Disallow multi-updates on primary key [#21113](https://github.com/pingcap/tidb/pull/21113)
- Fix a bug causes schema change after DML [#21050](https://github.com/pingcap/tidb/pull/21050)
- Fix the bug that can not query the coalesced column when use using-join. [#21021](https://github.com/pingcap/tidb/pull/21021)
- Fix wrong results for some semi join queries. [#21019](https://github.com/pingcap/tidb/pull/21019)
- Fix table lock for update statement. [#21002](https://github.com/pingcap/tidb/pull/21002)
- Fix stack overflow when building recursive view. [#21001](https://github.com/pingcap/tidb/pull/21001)
- Ddl: ignore integer zerofill size attribute when changing the column types [#20986](https://github.com/pingcap/tidb/pull/20986)
- Fix unexpected results when do merge join on outer join [#20954](https://github.com/pingcap/tidb/pull/20954)
- Fix the issue that sometimes a transaction that has undetermined result may be treated as failed. [#20925](https://github.com/pingcap/tidb/pull/20925)
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
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
+ TiKV

- Fix a bug that Coprocessor may return wrong result when there are > 255 columns. [#9131](https://github.com/tikv/tikv/pull/9131)
- Fix an issue that region merge may cause data loss during network partition. [#9108](https://github.com/tikv/tikv/pull/9108)
- Fix a bug may cause analyze statement panic when using the latin1 character set. [#9082](https://github.com/tikv/tikv/pull/9082)
- Fix cast decimal as time expr get wrong result when deal with numbers argument [#9031](https://github.com/tikv/tikv/pull/9031)
- Fix the bug that lightning fails to ingest sst files to tikv with importer/local backend when TDE is enabled [#8995](https://github.com/tikv/tikv/pull/8995)
- Config: fix invalid advertise-status-addr [#9036](https://github.com/tikv/tikv/pull/9036)
- Fix the issue that reports a key-exist error when a key is locked and deleted by a committed transaction. [#8930](https://github.com/tikv/tikv/pull/8930)

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

- Fix the issue that the leader role does not take effect when using the replacement rule in some cases [#3208](https://github.com/pingcap/pd/pull/3208)
- Fix the bug that `trace-region-flow` will be accidentally changed to `false`. [#3120](https://github.com/pingcap/pd/pull/3120)

+ TiFlash

- Fix the problem that `INFORMATION_SCHEMA.CLUSTER_HARDWARE` may contain information about disks not in use [#1248](https://github.com/pingcap/tics/pull/1248)
- Fix the issue that the memory consumption statistic of Delta Cache is smaller than actual the usage [#1212](https://github.com/pingcap/tics/pull/1212)

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

+ Backup & Restore (BR)

- Fix special characters in S3 secret access keys [#617](https://github.com/pingcap/br/pull/617)

+ TiCDC

- Fix the bug that multiple owners could exist when owner campaign key is deleted [#1104](https://github.com/pingcap/ticdc/pull/1104)
- Kafka_consumer: fix wrong timezone when 'TZ' env is not set and downstream is mysql [#1095](https://github.com/pingcap/ticdc/pull/1095)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

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

- Fix the problem that dumpling may get blocked when its connection to database server is closed [#190](https://github.com/pingcap/dumpling/pull/190)

+ TiDB Lightning

- Fix a bug about encoding data with wrong field info [#437](https://github.com/pingcap/tidb-lightning/pull/437)
- Fix a bug that gc life time ttl does not take effect [#448](https://github.com/pingcap/tidb-lightning/pull/448)
- Fix a bug that causes panic when manually stops Lightning import in Local-backend mode [#484](https://github.com/pingcap/tidb-lightning/pull/484)

## Others

+ TiDB

- Fix issue of explain for connection can't show the last query plan/ [#21315](https://github.com/pingcap/tidb/pull/21315)
- Add metric for connection idle time [#21301](https://github.com/pingcap/tidb/pull/21301)
- Fix the issue that when Index Merge is used in a transaction with RC isolation level, the result may be incorrect. [#21253](https://github.com/pingcap/tidb/pull/21253)
- Planner: fix wrong point get plan generation in fast plan code path [#21244](https://github.com/pingcap/tidb/pull/21244)
- Expression: keep the original data type when doing date arithmetic operations [#21176](https://github.com/pingcap/tidb/pull/21176)
- Ddl: Fix partition table's partition column values type check [#21136](https://github.com/pingcap/tidb/pull/21136)
- Make dump binary time more compatible with MySQL [#21135](https://github.com/pingcap/tidb/pull/21135)
- Fix auto-id allocation failed because of transaction's write-conflict retry. [#21079](https://github.com/pingcap/tidb/pull/21079)
- Fix The JSON Data can not import to TiDB correctly by `load data` [#21074](https://github.com/pingcap/tidb/pull/21074)
- Fix up displaying executor runtime info & Add runtime information for DML in explain analyze [#21066](https://github.com/pingcap/tidb/pull/21066)
- Deprecate `enable-streaming`. [#21055](https://github.com/pingcap/tidb/pull/21055)
- Avoid unnecessary warnings/errors when folding constants in shortcut-able expressions [#21040](https://github.com/pingcap/tidb/pull/21040)
- TiDB now provides an error for statements that use the syntax `LOCK IN SHARE MODE`. This helps alert users that this feature is not implemented by TiDB, but a workaround to restore the previous behavior is available by setting `tidb_enable_noop_functions=1`. [#21005](https://github.com/pingcap/tidb/pull/21005)
- Set correct default value for new added enum column. [#20998](https://github.com/pingcap/tidb/pull/20998)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved

+ TiKV

- Enable dynamically change config pessimistic-txn.pipelined. [#9100](https://github.com/tikv/tikv/pull/9100)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Running checksum in BR and Lightning should have less influence on the cluster performance. [#9098](https://github.com/tikv/tikv/pull/9098)
- Add a metrics for ingest sst errors [#9096](https://github.com/tikv/tikv/pull/9096)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Prevent hibernation when there are still peers catching up logs [#9093](https://github.com/tikv/tikv/pull/9093)
- Increase the success rate of pipelined pessimistic locking. [#9086](https://github.com/tikv/tikv/pull/9086)
- Add check to avoid corruption due to RocksDB block cache error #8243. Also disable `force-consistency-checks` by default to improve performance. [#9029](https://github.com/tikv/tikv/pull/9029)
TomShawn marked this conversation as resolved.
Show resolved Hide resolved
- Change the default value of `apply-max-batch-size` and `store-max-batch-size` to 1024 [#9020](https://github.com/tikv/tikv/pull/9020)
- Add config for max-background-flushes [#8947](https://github.com/tikv/tikv/pull/8947)
- Enable the unified read pool for the storage module by default. [#8887](https://github.com/tikv/tikv/pull/8887)

+ PD

- Dashboard: update to v2020.11.26.1 [#3219](https://github.com/pingcap/pd/pull/3219)
- Check cluster version on stores become tombstone [#3213](https://github.com/pingcap/pd/pull/3213)
- The store of lower version is no longer allowed to change from `Tombstone` back to `Up`. [#3206](https://github.com/pingcap/pd/pull/3206)
- Fix a bug that service safe points with infinite TTL may disappear. [#3143](https://github.com/pingcap/pd/pull/3143)
TomShawn 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/']

## 4.0

- [4.0.9](/releases/release-4.0.9.md)
- [4.0.8](/releases/release-4.0.8.md)
- [4.0.7](/releases/release-4.0.7.md)
- [4.0.6](/releases/release-4.0.6.md)
Expand Down