TiDB 4.0.13 Release Notes
Release date: May 28, 2021
TiDB version: 4.0.13
New Features
TiDB
Improvements
TiDB
- Avoid frequently reading the
mysql.stats_histograms
table if the cached statistics is up-to-date to avoid high CPU usage #24352
- Avoid frequently reading the
TiKV
PD
TiFlash
- Automatically clean archived data to free up disk space
Tools
Backup & Restore (BR)
TiCDC
Bug Fixes
TiDB
- Fix the panic issue that occurs when the
UPDATE
statement with a subquery updates the generated column #24658 - Fix the issue that causes duplicate query results when using the multi-column index for data reads #24634
- Fix the issue that causes wrong query result when using the
BIT
type constant as the divisor in the DIV expression #24266 - Fix the issue that the
NO_ZERO_IN_DATE
SQL mode does not take effect for the default column value set in DDL statements #24185 - Fix an issue which causes wrong query results when using
UNION
between aBIT
type column and anINTEGER
type column #24026 - Fix the issue that the
TableDual
plans are mistakenly created when comparing theBINARY
type and theCHAR
type #23917 - Fix the issue that the
insert ignore on duplicate
statement might unexpectedly delete table records #23825 - Fix the issue that the Audit plugin causes TiDB panic #23819
- Fix the issue that the
HashJoin
operator incorrectly processes the collation #23812 - Fix the issue of disconnection that occurs when
batch_point_get
incorrectly handles abnormal values in the pessimistic transaction #23778 - Fix the issue of inconsistent indexes that occurs when the
tidb_row_format_version
configuration value is set to1
and theenable_new_collation
value is set totrue
#23772 - Fix a bug that occurs when comparing the
INTEGER
type column with theSTRING
constant value #23705 - Fix the error that occurs when the
BIT
type column is passed into theapprox_percent
function #23702 - Fix a bug that causes TiDB to mistakenly report the
TiKV server timeout
error when executing TiFlash batch requests #23700 - Fix the issue that the
IndexJoin
operator returns wrong results on the prefix column index #23691 - Fix the issue which causes wrong query results because the collation on the
BINARY
type column is not properly handled #23598 - Fix the issue of query panic that occurs when the
UPDATE
statement contains the join query with theHAVING
clause #23575 - Fix the issue that causes TiFlash to return wrong results when using the
NULL
constant in the comparison expression #23474 - Fix the issue of wrong results when comparing the
YEAR
type column with theSTRING
constant #23335 - Fix the issue that
group_concat
panics whensession.group_concat_max_len
is set too small #23257 - Fix the issue of wrong query results that occurs when using the
BETWEEN
expression for theTIME
type column #23233 - Fix the issue of privilege check in the
DELETE
statements #23215 - Fix the issue that no error is reported when inserting invalid strings to the
DECIMAL
type column #23196 - Fix the issue of parsing error occurred when inserting data to the
DECIMAL
type columns #23152 - Fix the issue that the
USE_INDEX_MERGE
hint does not take effect #22924 - Fix a bug that the query returns wrong results when using
ENUM
orSET
columns in theWHERE
clause as an filter #22814 - Fix a bug that the query returns wrong results when using the clustered index and the new collation at the same time #21408
- Fix the panic that occurs when executing
ANALYZE
withenable_new_collation
enabled #21299 - Fix the issue that SQL views does not correctly handle the default roles associated with the SQL DEFINER #24531
- Fix the issue that cancelling DDL jobs gets stuck #24445
- Fix the issue that the
concat
function incorrectly handles the collation #24300 - Fix a bug that the query returns wrong results when the
SELECT
field has anIN
subquery and the subquery's outer side containsNULL
tuples #24022 - Fix a bug that TiFlash is chosen wrongly by the optimizer when
TableScan
is in descending order #23974 - Fix a bug that the
point_get
plan returns the column name that is inconsistent with that of MySQL #23970 - Fix the issue that executing the
show table status
statement on a database with a upper-cased name returns wrong results #23958 - Fix a bug that the users who do not have the
INSERT
andDELETE
privileges on a table at the same time can perform theREPLACE
operation #23938 - Fix the issue that the results of the
concat
/make_set
/insert
expressions are wrong because the collation is incorrectly handled #23878 - Fix the panic that occurs when executing a query on the table that has
RANGE
partitions #23689 - Fix the issue: In the cluster of an earlier version, if the
tidb_enable_table_partition
variable is set tofalse
, the tables that contain partitions are handled as non-partitioned tables. Executingbatch point get
queries on this table, when the cluster is upgraded to a later version, causes connection panic. #23682 - Fix the issue that when TiDB is configured to listen on TCP and UNIX sockets, the remote hosts over the TCP connection are not correctly validated for connection #23513
- Fix a bug that the non-default collation causes wrong query results #22923
- Fix a bug that the Coprocessor Cache panel of Grafana does not work #22617
- Fix the error that occurs when the optimizer accesses the statistic cache #22565
- Fix the panic issue that occurs when the
TiKV
- Fix a bug that TiKV cannot start if the
file_dict
file is not fully written into the disk that has been full #9963 - Limit TiCDC's scan speed at 128MB/s by default #9983
- Reduce the memory usage of TiCDC's initial scan #10133
- Support the back pressure for TiCDC's scan speed #10142
- Fix a potential OOM issue by avoiding unnecessary reads to get TiCDC old values #10031
- Fix a TiCDC OOM issue caused by reading old values #10197
- Add a timeout mechanism for S3 storages to avoid the client hanging without responses #10132
- Fix a bug that TiKV cannot start if the
TiFlash
- Fix the issue that number of
delta-merge-tasks
is not reported to Prometheus - Fix the TiFlash panic issue that occurs during
Segment Split
- Fix the issue that the
Region write Duration (write blocks)
panel in Grafana is shown in a wrong place - Fix the potential issue that the storage engine fails to remove data
- Fix the issue of incorrect results when casting the
TIME
type to theINTEGER
type - Fix a bug that the behavior of the
bitwise
operator is different from that of TiDB - Fix the issue of incorrect results when casting the
STRING
type to theINTEGER
type - Fix the issue that consecutive and fast writes might make TiFlash out of memory
- Fix the potential issue that the exception of null pointer might be raised during the table GC
- Fix the TiFlash panic issue that occurs when writing data to dropped tables
- Fix the TiFlash panic issue that occurs during BR restore
- Fix a bug that the weights of some characters are wrong when using the general CI collation
- Fix the potential issue that data will be lost in tombstoned tables
- Fix the issue of incorrect results when comparing the string which contains zero bytes
- Fix the issue that the logical function returns wrong results if the input column contains null constants
- Fix the issue that the logical function only accepts the numeric type
- Fix the issue of incorrect results that occurs when the timestamp value is
1970-01-01
and the timezone offset is negative - Fix the issue that hash value of
Decimal256
is not stable
- Fix the issue that number of
Tools
TiCDC
- Fix the deadlock issue caused by the flow control when the sorter's input channel has been blocked #1779
- Fix the issue that the TiKV GC safe point is blocked due to the stagnation of TiCDC changefeed checkpoint #1756
- Revert the update in
explicit_defaults_for_timestamp
which requires theSUPER
privilege when replicating data to MySQL #1749
TiDB Lightning
- Fix a bug that TiDB Lightning's TiDB-backend cannot load any data when autocommit is disabled