TiDB 3.0.8 Release Notes
Release date: December 31, 2019
TiDB version: 3.0.8
TiDB Ansible version: 3.0.8
TiDB
- SQL Optimizer
- Fix the wrong SQL binding plan caused by untimely cache updates #13891
- Fix the issue that the SQL binding might be invalid when an SQL statement contains a symbol list #14004
- Fix the issue that an SQL binding cannot be created or deleted because an SQL statement ends with
;#14113 - Fix the issue that a wrong SQL query plan might be selected because the
PhysicalUnionScanoperator sets wrong statistics #14133 - Remove the
minAutoAnalyzeRatiorestriction to makeautoAnalyzemore timely #14015
- SQL Execution Engine
- Fix issues that the
INSERT/REPLACE/UPDATE ... SET ... = DEFAULTsyntax might report an error and combining the usage of theDEFAULTexpression with a virtual generated column might report an error #13682 - Fix the issue that the
INSERTstatement might report an error when converting a string to a float #14011 - Fix the issue that sometimes the aggregate operation is low effective because the concurrency value of the
HashAggexecutor is incorrectly initialized #13811 - Fix the issue that an error is reported in the execution of
group by itemwhen the clause is in the parentheses #13658 - Fix the issue that the execution of
OUTER JOINmight report an error because TiDB incorrectly calculatesgroup by item#14014 - Fix the issue that the error message is inaccurate when Range-exceeding data is written into Range partitioned tables #14107
- Revert PR #10124 and cancel the
PadCharToFullLengtheffect to avoid unexpected query results in special cases, considering that MySQL 8 will discardPadCharToFullLengthsoon #14157 - Fix the goroutine leak issue when executing the
EXPLAIN ANALYZEstatement caused by unguaranteedclose()calling inExplainExec#14226
- Fix issues that the
- DDL
- Optimize the error message output of
change column/modify columnto make it easier to understand #13796 - Add the
SPLIT PARTITION TABLEsyntax to support splitting Regions for partitioned tables #13929 - Fix the issue that the index length exceeds 3072 bytes and no error is reported because the index length is incorrectly checked when an index is created #13779
- Fix the issue that the
GC life time is shorter than transaction durationerror message might be reported because it takes too much time to add an index in partitioned tables #14132 - Fix the panic when
SELECT * FROM information_schema.KEY_COLUMN_USAGEis executed because the foreign key is not checked whenDROP COLUMN/MODIFY COLUMN/CHANGE COLUMNis executed #14105
- Optimize the error message output of
- Server
- Statement Summary improvements:
- Add a large number of SQL metric fields to facilitate analyzing SQL statements in more detail #14151, #14168
- Add the
stmt-summary.refresh-intervalparameter to control whether to move the stale data from theevents_statements_summary_by_digesttable to theevents_statements_summary_by_digest_historytable (the default interval: 30 minutes) #14161 - Add the
events_statements_summary_by_digest_historytable to save the stale data inevents_statements_summary_by_digest#14166
- Fix the issue that the binlog is incorrectly output when RBAC-related internal SQL statements are executed #13890
- Add the
server-versionconfiguration item to control the feature of modifying the TiDB server version #13906 - Add the feature of using the HTTP interface to recover writing the TiDB binlog #13892
- Update the privilege required by
GRANT roles TO userfromGrantPrivtoROLE_ADMINorSUPER, to keep consistency with the MySQL behavior #13932 - Modify the TiDB behavior from using the current database to reporting the
No database selectederror when theGRANTstatement does not specify a database name, to keep compatibility with the MySQL behavior #13784 - Modify the execution privilege for the
REVOKEstatement fromSuperPrivtoREVOKEbeing executable only if the user has the privilege for the corresponding schema, to keep consistency with the MySQL behavior #13306 - Fix the issue that
GrantPrivis mistakenly granted to the target user when theGRANT ALLsyntax does not containWITH GRANT OPTION#13943 - Fix the issue that the error message does not contain the cause for the
LOAD DATAstatement’s wrong behavior whenLoadDataInfofails to calladdRecord#13980 - Fix the issue that wrong slow query information is output because multiple SQL statements in a query share the same
StartTime#13898 - Fix the issue that the memory might leak when
batchClientprocesses a large transaction #14032 - Fix the issue that
system_time_zoneis always displayed asCSTand now TiDB’ssystem_time_zoneis obtained fromsystemTZin themysql.tidbtable #14086 - Fix the issue that the
GRANT ALLsyntax does not grant all privileges to the user #14092 - Fix the issue that the
Priv_create_userprivilege is invalid forCREATE ROLEandDROP ROLE#14088 - Modify the error code of
ErrInvalidFieldSizefrom1105(Unknow Error)to3013#13737 - Add the
SHUTDOWNcommand to stop a TiDB server and add theShutdownPrivprivilege #14104 - Fix the atomicity issue for the
DROP ROLEstatement to avoid some roles being deleted unexpectedly when TiDB fails to execute a statement #14130 - Fix the issue that the
tidb_enable_window_functionin theSHOW VARIABLEresult incorrectly outputs1when a TiDB version is upgraded to 3.0, and replace the wrong result with0#14131 - Fix the issue that the goroutine might leak because
gcworkercontinuously retries when the TiKV node is offline #14106 - Record the binlog
Prewritetime in the slow query log to improve the usability for issue tracking #14138 - Make the
tidb_enable_table_partitionvariable supportGLOBAL SCOPE#14091 - Fix the issue that the user privilege might be missing or mistakenly added because the newly added privilege is not correctly granted to the corresponding user when a new privilege is added #14178
- Fix the issue that the
CheckStreamTimeoutLoopgoroutine might leak becauserpcClientdoes not close when the TiKV server is disconnected #14227 - Support certificate-based authentication (User document) #13955
- Statement Summary improvements:
- Transaction
- Update the default value of the
tidb_txn_modevariable from""to"pessimistic"when a new cluster is created #14171 - Fix the issue that the lock waiting time is too long for a pessimistic transaction because the lock waiting time for a single statement is not reset when a transaction is retried #13990
- Fix the issue that wrong data might be read because unmodified data is unlocked for the pessimistic transaction model #14050
- Fix repeated insert value restriction checks because transaction types are not distinguished when prewrite is performed in mocktikv #14175
- Fix the panic because transactions are not correctly handled when
session.TxnStateisInvalid#13988 - Fix the issue that the
ErrConfclitstructure in mocktikv does not containConflictCommitTS#14080 - Fix the issue that the transaction is blocked because TiDB does not correctly check lock timeout after resolving the lock #14083
- Update the default value of the
- Monitor
- Add the
pessimistic_lock_keys_durationmonitoring item inLockKeys#14194
- Add the
TiKV
- Coprocessor
- Raftstore
- Engine
- Fix the issue that empty data might be returned because RocksDB iterator errors are not correctly processed in extreme conditions #6326
- Transaction
- Update the default value of
tikv_allocfromtikv_alloc/defaulttojemalloc#6206
PD
- Client
- Optimize the performance for the
/api/v1/regionsAPI #1986 - Fix the issue that deleting stores in a
tombstonestate might cause a panic #2038 - Fix the issue that overlapped Regions are mistakenly deleted when loading the Region information from disks #2011, #2040
- Upgrade etcd from v3.4.0 to v3.4.3 (note that after upgrading you can only degrade etcd using pd-recover) #2058
Tools
- TiDB Binlog
- Fix the issue that the binlog is ignored because Pump does not receive the DDL committed binlog #853
TiDB Ansible
- Revert the simplified configuration item #1053
- Optimize the logic for checking the TiDB version when performing a rolling update #1056
- Upgrade TiSpark to v2.1.8 #1061
- Fix the issue that the PD role monitoring item is wrongly displayed on Grafana #1065
- Optimize
Thread Voluntary Context SwitchesandThread Nonvoluntary Context Switchesmonitoring items on the TiKV Detail page on Grafana #1071