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_histogramstable 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
UPDATEstatement 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
BITtype constant as the divisor in the DIV expression #24266 - Fix the issue that the
NO_ZERO_IN_DATESQL 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
UNIONbetween aBITtype column and anINTEGERtype column #24026 - Fix the issue that the
TableDualplans are mistakenly created when comparing theBINARYtype and theCHARtype #23917 - Fix the issue that the
insert ignore on duplicatestatement might unexpectedly delete table records #23825 - Fix the issue that the Audit plugin causes TiDB panic #23819
- Fix the issue that the
HashJoinoperator incorrectly processes the collation #23812 - Fix the issue of disconnection that occurs when
batch_point_getincorrectly handles abnormal values in the pessimistic transaction #23778 - Fix the issue of inconsistent indexes that occurs when the
tidb_row_format_versionconfiguration value is set to1and theenable_new_collationvalue is set totrue#23772 - Fix a bug that occurs when comparing the
INTEGERtype column with theSTRINGconstant value #23705 - Fix the error that occurs when the
BITtype column is passed into theapprox_percentfunction #23702 - Fix a bug that causes TiDB to mistakenly report the
TiKV server timeouterror when executing TiFlash batch requests #23700 - Fix the issue that the
IndexJoinoperator returns wrong results on the prefix column index #23691 - Fix the issue which causes wrong query results because the collation on the
BINARYtype column is not properly handled #23598 - Fix the issue of query panic that occurs when the
UPDATEstatement contains the join query with theHAVINGclause #23575 - Fix the issue that causes TiFlash to return wrong results when using the
NULLconstant in the comparison expression #23474 - Fix the issue of wrong results when comparing the
YEARtype column with theSTRINGconstant #23335 - Fix the issue that
group_concatpanics whensession.group_concat_max_lenis set too small #23257 - Fix the issue of wrong query results that occurs when using the
BETWEENexpression for theTIMEtype column #23233 - Fix the issue of privilege check in the
DELETEstatements #23215 - Fix the issue that no error is reported when inserting invalid strings to the
DECIMALtype column #23196 - Fix the issue of parsing error occurred when inserting data to the
DECIMALtype columns #23152 - Fix the issue that the
USE_INDEX_MERGEhint does not take effect #22924 - Fix a bug that the query returns wrong results when using
ENUMorSETcolumns in theWHEREclause 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
ANALYZEwithenable_new_collationenabled #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
concatfunction incorrectly handles the collation #24300 - Fix a bug that the query returns wrong results when the
SELECTfield has anINsubquery and the subquery's outer side containsNULLtuples #24022 - Fix a bug that TiFlash is chosen wrongly by the optimizer when
TableScanis in descending order #23974 - Fix a bug that the
point_getplan returns the column name that is inconsistent with that of MySQL #23970 - Fix the issue that executing the
show table statusstatement on a database with a upper-cased name returns wrong results #23958 - Fix a bug that the users who do not have the
INSERTandDELETEprivileges on a table at the same time can perform theREPLACEoperation #23938 - Fix the issue that the results of the
concat/make_set/insertexpressions are wrong because the collation is incorrectly handled #23878 - Fix the panic that occurs when executing a query on the table that has
RANGEpartitions #23689 - Fix the issue: In the cluster of an earlier version, if the
tidb_enable_table_partitionvariable is set tofalse, the tables that contain partitions are handled as non-partitioned tables. Executingbatch point getqueries 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_dictfile 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-tasksis 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
TIMEtype to theINTEGERtype - Fix a bug that the behavior of the
bitwiseoperator is different from that of TiDB - Fix the issue of incorrect results when casting the
STRINGtype to theINTEGERtype - 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-01and the timezone offset is negative - Fix the issue that hash value of
Decimal256is 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_timestampwhich requires theSUPERprivilege 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