TiDB 3.0.9 Release Notes

    发版日期:2020 年 1 月 14 日

    TiDB Ansible 版本:3.0.9

    • Executor
      • 修复聚合函数作用于枚举和集合列时结果不正确的问题
    • Server
      • 支持系统变量 和 auto_increment_offset #14396
      • 执行 SQL 过程中当发生 panic 时输出导致 panic 的 SQL 信息
      • statement summary 系统表新增 planplan_digest 字段,记录当前正在执行的 planplan 的签名 #14285
      • 配置项 stmt-summary.max-stmt-count 的默认值从 100 调整至
      • slow query 表新增 plan_digest 字段,记录 plan 的签名 #14292
    • DDL
      • 修复 alter table ... add index 语句创建匿名索引行为与 MySQL 不一致的问题
      • 修复 drop table 错误删除视图的问题 #14052
    • Planner
      • 提升类似 select max(a), min(a) from t 语句的性能。如果 a 列表上有索引,该语句会被优化为 select * from (select a from t order by a desc limit 1) as t1, (select a from t order by a limit 1) as t2 以避免全表扫
    • Transaction
      • 新增 tikv_lock_manager_waiter_lifetime_duration、、tikv_lock_manager_detect_duration 监控项,用于监控 waiter 的生命周期、死锁检测耗费时间、wait table 的状态 #6392
      • 通过优化配置项 wait-for-lock-time 默认值从 3s 调整到 1swake-up-delay-duration 默认值从 100ms 调整为 ,以降低极端场景下 Region Leader 切换、切换死锁检测的 leader 导致的事务执行延迟
      • 修复 Region Merge 过程中可能导致死锁检测器 leader 角色误判的问题 #6431
    • 新增 location label 的名字中允许使用斜杠 / 的功能
    • 修复因为不正确地统计了 tombstone 的标签,导致该统计信息不准的问题 #2060
    • TiDB Binlog
      • Drainer 输出的 binlog 协议中新增 unique key 信息
    • 优化 Lightning 部署,自动创建相关目录 #1105