|
| 1 | +--- |
| 2 | +title: TiDB 3.1.0 GA Release Notes |
| 3 | +category: Releases |
| 4 | +--- |
| 5 | + |
| 6 | +# TiDB 3.1.0 GA Release Notes |
| 7 | + |
| 8 | +Release date: April 16, 2020 |
| 9 | + |
| 10 | +TiDB version: 3.1.0 GA |
| 11 | + |
| 12 | +TiDB Ansible version: 3.1.0 GA |
| 13 | + |
| 14 | +## Compatibility Changes |
| 15 | + |
| 16 | ++ TiDB |
| 17 | + |
| 18 | + - Support directly stopping starting TiDB if the HTTP listening port is unavailable when the `report-status` configuration item is enabled [#16291](https://github.com/pingcap/tidb/pull/16291) |
| 19 | + |
| 20 | ++ Tools |
| 21 | + |
| 22 | + - Backup & Restore (BR) |
| 23 | + |
| 24 | + * BR does not support restoring data from the TiKV cluster earlier than 3.1 GA [#233](https://github.com/pingcap/br/pull/233) |
| 25 | + |
| 26 | +## New Features |
| 27 | + |
| 28 | ++ TiDB |
| 29 | + |
| 30 | + - Support displaying the information of Coprocessor tasks in `explain format = "dot"` [#16125](https://github.com/pingcap/tidb/pull/16125) |
| 31 | + - Reduce the redundant stack information of log using the `disable-error-stack` configuration item [#16182](https://github.com/pingcap/tidb/pull/16182) |
| 32 | + |
| 33 | ++ Placement Driver (PD) |
| 34 | + |
| 35 | + - Optimize the hot Region scheduling [#2342](https://github.com/pingcap/pd/pull/2342) |
| 36 | + |
| 37 | ++ TiFlash |
| 38 | + |
| 39 | + - Add the metrics report related to the read and write workloads of DeltaTree engine |
| 40 | + - Support pushing down the `fromUnixTime` and `dateFormat` functions |
| 41 | + - Disable the rough set filter by default |
| 42 | + |
| 43 | ++ TiDB Ansible |
| 44 | + |
| 45 | + - Add TiFlash monitor [#1253](https://github.com/pingcap/tidb-ansible/pull/1253) [#1257](https://github.com/pingcap/tidb-ansible/pull/1257) |
| 46 | + - Optimize the configuration parameters of TiFlash [#1262](https://github.com/pingcap/tidb-ansible/pull/1262) [#1265](https://github.com/pingcap/tidb-ansible/pull/1265) [#1271](https://github.com/pingcap/tidb-ansible/pull/1271) |
| 47 | + - Optimize the TiDB starting script [#1268](https://github.com/pingcap/tidb-ansible/pull/1268) |
| 48 | + |
| 49 | +## Bug Fixes |
| 50 | + |
| 51 | ++ TiDB |
| 52 | + |
| 53 | + - Fix the panic issue caused by the merge join operation in some scenarios [#15920](https://github.com/pingcap/tidb/pull/15920) |
| 54 | + - Fix the issue that some expressions are repeatedly counted in selectivity calculation [#16052](https://github.com/pingcap/tidb/pull/16052) |
| 55 | + - Fix the panic issue occurred when loading the statistics information in extreme cases [#15710](https://github.com/pingcap/tidb/pull/15710) |
| 56 | + - Fix the issue that an error is returned in some cases when equivalent expressions cannot be recognized in SQL query [#16015](https://github.com/pingcap/tidb/pull/16015) |
| 57 | + - Fix the issue that an error is returned when querying the `view` of one database from another database [#15867](https://github.com/pingcap/tidb/pull/15867) |
| 58 | + - Fix the panic issue that occurs when the column is handled using `fast analyze` [#16080](https://github.com/pingcap/tidb/pull/16080) |
| 59 | + - Fix the incorrect character set of the `current_role` print result [#16084](https://github.com/pingcap/tidb/pull/16084) |
| 60 | + - Refine the log of MySQL connection handshake error [#15799](https://github.com/pingcap/tidb/pull/15799) |
| 61 | + - Fix the panic issue caused by port probing after the audit plugin is loaded [#16065](https://github.com/pingcap/tidb/pull/16065) |
| 62 | + - Fix the panic issue of the `sort` operator on left join because the `TypeNull` class is mistaken as a variable-length type [#15739](https://github.com/pingcap/tidb/pull/15739) |
| 63 | + - Fix the issue of inaccurate count of monitoring session retry errors [#16120](https://github.com/pingcap/tidb/pull/16120) |
| 64 | + - Fix the issue of wrong results of `weekday` in the `ALLOW_INVALID_DATES` mode [#16171](https://github.com/pingcap/tidb/pull/16171) |
| 65 | + - Fix the issue that Garbage Collection (GC) might not work normally when the cluster has TiFlash nodes [#15761](https://github.com/pingcap/tidb/pull/15761) |
| 66 | + - Fix the issue that TiDB goes out of memory (OOM) when users set a large partition count when creating the hash partitioned table [#16219](https://github.com/pingcap/tidb/pull/16219) |
| 67 | + - Fix the issue that warnings are mistaken as errors, and make the `UNION` statement have the same behavior as the `SELECT` statement [#16138](https://github.com/pingcap/tidb/pull/16138) |
| 68 | + - Fix the execution error when `TopN` is pushed down to mocktikv [#16200](https://github.com/pingcap/tidb/pull/16200) |
| 69 | + - Increase the initial length of `chunk.column.nullBitMap` to avoid unnecessary overhead of `runtime.growslice` [#16142](https://github.com/pingcap/tidb/pull/16142) |
| 70 | + |
| 71 | ++ TiKV |
| 72 | + |
| 73 | + - Fix the panic issue caused by replica read [#7418](https://github.com/tikv/tikv/pull/7418) [#7369](https://github.com/tikv/tikv/pull/7369) |
| 74 | + - Fix the issue that the restoration process creates empty Regions [#7419](https://github.com/tikv/tikv/pull/7419) |
| 75 | + - Fix the issue that repeated resolve lock requests might harm the atomicity of pessimistic transactions [#7389](https://github.com/tikv/tikv/pull/7389) |
| 76 | + |
| 77 | ++ TiFlash |
| 78 | + |
| 79 | + - Fix the potential issue of the `rename table` operation when replicating the schema from TiDB |
| 80 | + - Fix the issue of data loss caused by the `rename table` operation under multiple data path configurations |
| 81 | + - Fix the issue that TiFlash reports incorrect storage space in some scenarios |
| 82 | + - Fix the potential issue caused by reading from TiFlash when Region Merge is enabled |
| 83 | + |
| 84 | ++ Tools |
| 85 | + |
| 86 | + - TiDB Binlog |
| 87 | + |
| 88 | + * Fix the issue that TiFlash-related DDL jobs might interrupt the replication of Drainer [#948](https://github.com/pingcap/tidb-binlog/pull/948) [#942](https://github.com/pingcap/tidb-binlog/pull/942) |
| 89 | + |
| 90 | + - BR |
| 91 | + |
| 92 | + * Fix the issue that the `checksum` operation is still executed when it is disabled [#223](https://github.com/pingcap/br/pull/223) |
| 93 | + * Fix the issue that incremental backup fails when TiDB enables `auto-random` or `alter-pk` [#230](https://github.com/pingcap/br/pull/230) [#231](https://github.com/pingcap/br/pull/231) |
0 commit comments