RATATOSK
← リリース一覧

TiKVv8.5.4

破壊的変更 5非推奨 1重大な修正 42機能・改善 11依存関係の更新 1その他の変更 50

TiKVの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

アップグレード前の確認事項

前提条件2
新規作成した v8.5.3 クラスターからの円滑なアップグレード

このリリースでは、システム変数と構成パラメーターのデフォルト値および動作が変更されます。

Newly created v8.5.3 clusters can be smoothly upgraded to v8.5.4. However, v8.5.4 introduces several default value changes and behavior adjustments for system variables and configuration parameters. Before upgrading, pay attention to the following:
docs.pingcap.com/tidb/stable/release-8.5.4
カスタマイズした TiFlash と TiKV のコンパクション設定に関するアップグレード時の注意事項

ほとんどの変更は通常のアップグレードで安全ですが、これらのカスタム設定を使用するクラスターでは慎重な確認が必要です。

- Most changes are safe for routine upgrades. However, if your cluster has undergone performance tuning, such as customized TiFlash and TiKV compaction configurations, read this section carefully.
docs.pingcap.com/tidb/stable/release-8.5.4

破壊的変更5

tidb_replica_read の読み取り専用 SQL への限定

影響対象tidb_replica_read を使用する SQL 文(推定)
原文を表示
tidb_replica_read Modified Starting from v8.5.4, this variable only takes effect on read-only SQL statements. This improves data read safety and reduces overlaps with other features. #62856 @you06
docs.pingcap.com/tidb/stable/release-8.5.4

server.grpc-raft-conn-num のCPUコア数に基づく既定値

影響対象server.grpc-raft-conn-num の既定値を使用する TiKV 環境

従来の既定値は1でしたが、現在は MAX(1, MIN(4, CPU cores / 8)) に従い、CPUコア数に応じて接続数が調整されます。

原文を表示
TiKV server.grpc-raft-conn-num Modified Changes the default value from 1 to MAX(1, MIN(4, CPU cores / 8)) , which enables gRPC-related thread settings to adapt to the number of CPU cores. When the number of CPU cores equals or exceeds 32, the maximum default number of connections is 4. #18806 @LykxSassinator
docs.pingcap.com/tidb/stable/release-8.5.4

TiKV における server.grpc-concurrency のデフォルト値変更

影響対象server.grpc-concurrency のデフォルト値を使用している TiKV 環境

デフォルト値は 5 でしたが、引き続きデフォルト値を使用している環境では、代わりに grpc-raft-conn-num * 3 + 2 が使われます。これにより、gRPC 関連のスレッド設定が CPU コア数に応じて調整されます。

原文を表示
TiKV server.grpc-concurrency Modified Changes the default value from 5 to grpc-raft-conn-num * 3 + 2 , which enables gRPC-related thread settings to adapt to the number of CPU cores. #18806 @LykxSassinator
docs.pingcap.com/tidb/stable/release-8.5.4

SELECT FOR UPDATE 文での max_execution_time 適用の修正

影響対象SELECT FOR UPDATE 文に max_execution_time を設定している環境

この修正前は、SELECT FOR UPDATE 文の実行時に max_execution_time が適用されませんでした。

原文を表示
- Fix the issue that max_execution_time does not take effect for SELECT FOR UPDATE statements #62960 @ ekexium
docs.pingcap.com/tidb/stable/release-8.5.4

バケット報告の無効化時にバケット分割を停止

影響対象バケット報告を無効にし、バケット分割を使用している構成(推定)

この修正前は、バケット報告を無効にしていてもバケット分割が動作していました。

原文を表示
- Fix the issue that splitting buckets still works even after bucket reporting is disabled #9726 @ bufferflies
docs.pingcap.com/tidb/stable/release-8.5.4

非推奨1

TiKV の自動コンパクション設定を gc.auto-compaction に置き換え

影響対象region-compact-* 項目または gc.auto-compaction 設定を使用する TiKV 構成(推定)
削除予定不明

従来、この動作の設定には region-compact-* 項目が使われていました。新しい設定グループで自動コンパクションを制御します。

原文を表示
TiKV - region-compact-check-interval
- region-compact-check-step
- region-compact-min-tombstones
- region-compact-tombstones-percent
- region-compact-min-redundant-rows
- region-compact-redundant-rows-percent
Deprecated These configuration items are replaced by the gc.auto-compaction configuration group, which controls the automatic compaction behavior. #18727 @v01dstar
TiKV gc.auto-compaction configuration group: - gc.auto-compaction.check-interval
- gc.auto-compaction.tombstone-num-threshold
- gc.auto-compaction.tombstone-percent-threshold
- gc.auto-compaction.redundant-rows-threshold
- gc.auto-compaction.redundant-rows-percent-threshold
- gc.auto-compaction.bottommost-level-force
Newly added This configuration group controls the automatic compaction behavior. #18727 @v01dstar
docs.pingcap.com/tidb/stable/release-8.5.4

重大な修正42表面化しなかった不具合4

  • 長期間にわたる範囲の行数過大推定を修正
    影響対象数か月または数年にまたがる範囲の行数推定

    こうした推定値が大幅に高くなることがありました。

    - Fix the issue that row count estimates across months or years can be significantly overestimated #50080 @ terry1purcell
    docs.pingcap.com/tidb/stable/release-8.5.4
  • INFORMATION_SCHEMA に対する正規表現クエリの誤った結果の修正
    影響対象INFORMATION_SCHEMA クエリ

    正規表現を使って INFORMATION_SCHEMA テーブルを検索するクエリで、誤った結果が返される場合があります。

    - Fix the issue that queries using regular expressions against INFORMATION_SCHEMA tables might return incorrect results #62347 @ River2000i
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ADMIN ALTER DDL JOBS のパラメータ表示の修正
    影響対象パラメータを動的に変更し、ADMIN ALTER DDL JOBS 文を使用する環境

    パラメータを動的に変更した後、ADMIN ALTER DDL JOBS 文に誤ったパラメータ値が表示されていました。

    - Fix the issue that ADMIN ALTER DDL JOBS statements display incorrect parameter values after dynamically modifying parameters #63201 @ fzzf678
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ATAN2 の誤った結果の修正
    影響対象ATAN2 関数を使用するクエリ

    ATAN2 の使用時に誤った結果が返されることがありました。このリリースではこの動作が修正されています。

    - Fix the issue that using the ATAN2 function might produce incorrect results #60093 @ guo-shaoge
    docs.pingcap.com/tidb/stable/release-8.5.4
  • set_var ヒントをバインディングと併用した場合の変数復元を修正
    影響対象set_var ヒントを使用するバインディング

    set_var ヒントをバインディングと併用した場合、変数が復元されず、元の値とは異なる設定のままになることがありました。この場合も、変数は元の設定に復元されるようになりました。

    - Fix the issue that using the set_var hint with bindings prevents variables from being restored to their original settings #59822 @ wddevries
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 外部結合から内部結合への書き換えで誤った結果が生じる問題の修正表面化しなかった不具合
    影響対象外部結合から内部結合への書き換えを使用するクエリ

    外部結合が内部結合に書き換えられた際、誤った結果が生成される場合がありました。このリリースでは、その問題を修正しました。

    - Fix the issue that rewriting an outer join to an inner join might produce incorrect results #61327 @ hawkingrei
    docs.pingcap.com/tidb/stable/release-8.5.4
  • グローバルインデックスの誤った結果の修正表面化しなかった不具合
    影響対象グローバルインデックスを使用する環境

    場合によっては、グローバルインデックスが誤った結果を返すことがありました。このリリースで修正されています。

    - Fix the issue that the global index might return incorrect results in some cases #61083 @ Defined2014
    docs.pingcap.com/tidb/stable/release-8.5.4
  • character_set_results による文字置換の修正表面化しなかった不具合
    影響対象character_set_results を使用する構成

    これまでは、該当する文字が置換されずに切り詰められていました。現在は切り詰めではなく、置換されます。

    - Fix the issue that character_set_results truncates incorrect characters instead of replacing them #61085 @ xhebox
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TSO HTTP API の結果の誤りを修正
    影響対象TSO HTTP API の /config または /members エンドポイントを使用する構成

    このリリースより前は、これらのエンドポイントが誤った結果を返していました。

    - Fix the issue that the TSO HTTP API /config and /members return incorrect results #9797 @ lhy1024
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TiFlash の RU 消費統計値の過大計上を修正
    影響対象RU 消費量の統計を生成する TiFlash 環境(推定)

    TiFlash が RU 消費量の統計を生成する際、報告される値が実際より大きくなっていました。

    - Fix the issue that TiFlash generates inflated statistics for RU consumption #10380 @ JinheLin
    docs.pingcap.com/tidb/stable/release-8.5.4
  • FLOOR() と CEIL() の DECIMAL 結果の修正表面化しなかった不具合
    影響対象FLOOR() または CEIL() を DECIMAL 型の引数で使用する TiFlash 環境

    DECIMAL 型の引数で呼び出した場合、これらの関数が誤った結果を返すことがありました。修正により、正しい結果を返すようになりました。

    - Fix the issue that the FLOOR() and CEIL() functions might return incorrect results when their parameters are of the DECIMAL type #10365 @ ChangRui-Ryan
    docs.pingcap.com/tidb/stable/release-8.5.4
  • mysql.stats_meta の count 復元の修正
    影響対象--checksum を false に設定して作成したバックアップ

    リストア後、mysql.stats_meta の count 列が 0 になることがありました。この問題は本リリースで修正されています。

    - Fix the issue that setting --checksum to false during backup might cause the count column in the mysql.stats_meta table to become 0 after restore #60978 @ Leavrth
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ログバックアップにおける zstd 圧縮の復元
    影響対象既定の zstd fastest 設定でログバックアップを使用する TiKV 環境

    ログバックアップで既定のアルゴリズムとして zstd fastest が想定される場合、async-compression v0.4.12 の負の既定レベルにより、zstd 圧縮が無効化されるか、効果がなくなっていました。

    - tikv/tikv#18836
    - Fix the issue that zstd compression in log backup does not take effect, causing the output to remain uncompressed #18836 @ 3pointer
    github.com/tikv/tikv/releases/tag/v8.5.4
  • Azure Blob Storageへのバックアップ時のフラッシュ遅延の修正
    影響対象アップロード元がメモリ以外で、Azure Blob Storage にバックアップする構成

    Azure Blob Storage へのバックアップ中、400 MiB のフラッシュに約17分かかり、CPUコアを1つフルに使用することがありました。

    - tikv/tikv#18410
    - Fix the issue that the flush operation occasionally becomes slow when backing up data to Azure Blob Storage #18410 @ YuJuncen
    github.com/tikv/tikv/releases/tag/v8.5.4
  • GC セーフポイントを使用したコンパクションスコアの計算
    影響対象GC セーフポイントとの関係でコンパクションスコアを計算する TiKV 環境(推定)

    MVCC の冗長性を GC セーフポイントと RocksDB の統計情報に基づいて計算することで、コンパクションスコアの効率と精度が向上します。

    - tikv/tikv#18697
    - Calculate MVCC redundancy based on GC safe points and RocksDB statistics to improve the efficiency and accuracy of compaction #18697 @ v01dstar
    github.com/tikv/tikv/releases/tag/v8.5.4
  • ログバックアップでのリージョン監視漏れの修正
    影響対象ログバックアップを利用する構成

    新しいログバックアップタスクの初期化中にリージョンがリーダーになった際、Start と Stop の observe メッセージの順序が入れ替わると、そのリージョンが監視されない状態になり、古い observe ID エラーによって進捗が止まることがありました。この状況でも、オブザーバーがリージョンの監視を維持するようになりました。

    - tikv/tikv#18243
    - Fix the issue that log backup observer might lose the observation on a Region, causing the log backup progress to fail to advance #18243 @ Leavrth
    github.com/tikv/tikv/releases/tag/v8.5.4
  • TiKV CDC のアサーションによるパニックを修正
    影響対象TiKV CDC を使用する環境

    TiKV v8.5.1 では、CDC の処理経路でタイムスタンプが一致しない場合にアサーションに抵触し、TiCDC がパニックすることがありました。

    - tikv/tikv#18498
    - Fix the issue that assertion errors in TiKV might cause TiCDC to panic #18498 @ tharanga
    github.com/tikv/tikv/releases/tag/v8.5.4
  • CDC のリージョンサブスクリプション時のパニック修正
    影響対象CDC を使用する構成

    キーのロールバック後、prewrite エントリーが記録される前にリージョンがサブスクライブされると、CDC が理論上パニックする可能性がありました。報告によると、実際には発生していませんでした。

    - tikv/tikv#19048
    - Fix the issue that TiCDC might panic when encountering rollback and prewrite entries during Region subscription #19048 @ 3AceShowHand
    github.com/tikv/tikv/releases/tag/v8.5.4
  • インデックス関連 DDL での ANALYZE 対応
    影響対象tidb_stats_update_during_ddl を有効にした TiDB 環境

    新しいインデックスや再編成されたインデックスが可視になる前に TiDB が ANALYZE を実行し、統計情報が利用できない間に不正確なオプティマイザー推定や実行計画の変更が起きるのを防ぐのに役立ちます。この変数はデフォルトで OFF です。有効にすると、大規模テーブルで ADD INDEX の実行時間が長くなる可能性があります。

    - Support ANALYZE embedded in DDL statements #57948 @ terry1purcell @ AilinKid
    This feature applies to the following types of DDL statements:
    - DDL statements that create new indexes: ADD INDEX
    - DDL statements that reorganize existing indexes: MODIFY COLUMN and CHANGE COLUMN
    When this feature is enabled, TiDB automatically runs an ANALYZE (statistics collection) operation before the new or reorganized index becomes visible to users. This prevents inaccurate optimizer estimates and potential plan changes caused by temporarily unavailable statistics after index creation or reorganization.
    For more information, see documentation .
    docs.pingcap.com/tidb/stable/release-8.5.4
  • BRバックアップで自動復旧可能なエラーを WARN で記録
    影響対象BRバックアップ操作

    backup snapshot failed や backup writer failed などの状況では、これらの自動復旧可能なエラーは、エラーレベルの状態ではなく手動操作を要するにもかかわらず、以前は ERROR で記録されていました。

    - Change the log level of certain automatically recoverable errors in the BR module from ERROR to WARN to reduce unnecessary alerts #18493 @ YuJuncen
    - tikv/tikv#18493
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 一部の TiKV エラーを WARN で記録
    影響対象該当するエラーが発生する TiKV 環境

    これらのエラーは以前は ERROR で記録されていましたが、WARN で記録することで不要なアラートを減らせます。

    - Change the log level of certain TiKV errors from ERROR to WARN to reduce unnecessary alerts #18745 @ exit-code-1
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TRUNCATE()の短縮パス処理の誤りを修正
    影響対象TRUNCATE()で短縮パスを使用するクエリ(推定)
    - Fix the issue that the short path in the TRUNCATE() function is incorrectly processed #57608 @ xzhangxian1008
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ローカル一時領域のクォータ超過エラー時のスピルファイル削除を修正
    影響対象ファイルをスピルする構成

    ローカル一時領域のクォータ超過エラーが発生した場合、スピルファイルが完全に削除されないことがありました。

    - Fix the issue that spilled files might not be fully deleted when the Out Of Quota For Local Temporary Space error is triggered #63216 @ xzhangxian1008
    docs.pingcap.com/tidb/stable/release-8.5.4
  • PD からのタイムスタンプ取得失敗時の TiDB のエラー返却を修正
    影響対象PD からタイムスタンプを取得する TiDB 環境

    以前は、TiDB が PD からタイムスタンプを取得できなかった場合、エラーを返しませんでした。

    - Fix the issue that TiDB does not return an error when it fails to get a timestamp from PD #58871 @ joechenrh
    docs.pingcap.com/tidb/stable/release-8.5.4
  • MODIFY COLUMN における owner と non-owner の TiDB 間のクエリ結果不一致の修正
    影響対象owner と non-owner の TiDB インスタンス間で実行する MODIFY COLUMN 文

    MODIFY COLUMN 文の実行時に、owner と non-owner の TiDB インスタンス間でクエリ結果が異なっていました。

    - Fix the issue that query results differ between the owner TiDB and non-owner TiDB instances during executing MODIFY COLUMN statements #60264 @ tangenta
    docs.pingcap.com/tidb/stable/release-8.5.4
  • トランザクション内でのインデックス作成時における GC セーフポイントの進行修正
    影響対象インデックスを追加するトランザクション

    トランザクション内でインデックスを追加した際、GC セーフポイントが進みませんでした。

    - Fix the issue that the GC safe point does not advance when adding an index within a transaction #62424 @ wjhuang2016
    docs.pingcap.com/tidb/stable/release-8.5.4
  • DXFタスクのキャンセル時に発生する終了失敗の修正
    影響対象DXFを使用する構成

    他のタスクの実行中にDXFタスクをキャンセルすると、それらのタスクが終了できませんでした。

    - Fix the issue that after the DXF task is canceled, other tasks fail to exit #63927 @ D3Hunter
    docs.pingcap.com/tidb/stable/release-8.5.4
  • Apply オペレーターのプラン生成失敗の修正
    影響対象tidb_enable_parallel_apply = on を使用して Apply オペレーターの並行実行を有効にした環境

    tidb_enable_parallel_apply = on の場合、Apply オペレーターの並行実行経路に clone の実装がなかったため、プラン生成に失敗していました。

    - Fix the issue that enabling the Apply operator concurrency ( tidb_enable_parallel_apply = on ) causes plan generation failure due to a missing clone implementation #59863 @ hawkingrei
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ONLY_FULL_GROUP_BY チェックの大文字と小文字を区別しない動作の修正
    影響対象ONLY_FULL_GROUP_BY チェック(推定)

    大文字と小文字の違いが動作に影響する入力を処理する際、このチェックは大文字と小文字を区別せずに扱っていました。この動作は修正されましたが、変更後の動作はリリースノートに記載されていません。

    - Fix the issue that the ONLY_FULL_GROUP_BY check is case-insensitive #62672 @ AilinKid
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 特定のクエリによる内部パニックの修正
    影響対象影響を受けるクエリを実行する環境

    特定のクエリを実行すると内部パニックが発生することがありました。リリースノートでは、該当するクエリは特定されていません。

    - Fix the issue that executing certain queries might cause an internal panic #58600 @ Defined2014
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ALTER PARTITION 中のグローバルインデックス読み取り誤りの修正
    影響対象グローバルインデックスを使用し、ALTER PARTITION 操作を実行する環境

    一部の ALTER PARTITION 操作中に、グローバルインデックスが誤ったデータを返すことがありました。このリリースで読み取りの問題を修正しました。

    - Fix the issue that the global index might read incorrect data during certain ALTER PARTITION operations #64084 @ mjonss
    docs.pingcap.com/tidb/stable/release-8.5.4
  • Resource Manager のトークン割り当て修正
    影響対象Resource Manager を使用する構成(推定)

    Resource Manager がトークンを誤って割り当てると、クエリが停止したままになることがありました。

    - Fix the issue that the Resource Manager incorrectly allocates tokens, causing queries to be stuck #9455 @ JmPotato
    docs.pingcap.com/tidb/stable/release-8.5.4
  • PDリーダー切り替え後にPlacement Rulesが有効にならない問題の修正
    影響対象Placement Rulesを使用する構成

    PDリーダーが切り替わると、Placement Rulesが有効になりませんでした。

    - Fix the issue that Placement Rules do not take effect after PD leader switches #9602 @ okJiang
    docs.pingcap.com/tidb/stable/release-8.5.4
  • PD による指数表記の大きな数値の解析を修正
    影響対象大きな指数表記の数値を含む TTL 関連設定

    PD が指数表記の大きな数値に遭遇すると、解析に失敗し、一部の TTL 関連設定が反映されないことがありました。

    - Fix the issue that PD might fail to parse large numeric values in scientific notation, which consequently causes some TTL-related configurations to not take effect #9343 @ lhy1024
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TiFlash のメモリ不足を修正
    影響対象ストレージとコンピュートを分離して使用する TiFlash

    遅いクエリが存在すると、TiFlash のメモリが不足することがありました。この問題は本リリースで修正されています。

    - Fix the issue that TiFlash might encounter OOM when slow queries exist under the disaggregated storage and compute architecture #10278 @ JaySon-Huang
    docs.pingcap.com/tidb/stable/release-8.5.4
  • S3 使用時の TiFlash の無期限リトライを修正
    影響対象S3 を使用するストレージとコンピュートの分離構成の TiFlash デプロイメント

    TiFlash と S3 の間でネットワークが分断されると、TiFlash が無期限に再試行することがありました。この無期限の再試行動作を修正しました。

    - Fix the issue that TiFlash might retry indefinitely when a network partition occurs between TiFlash and S3 under the disaggregated storage and compute architecture #10424 @ JaySon-Huang
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ファイル削除失敗時のログ切り詰めの修正
    影響対象ファイル削除を伴うログ操作(推定)

    ファイルの削除に失敗すると、ログが切り詰められることがありました。

    - Fix the issue that log truncate might occur when file deletion fails #63358 @ YuJuncen
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 帯域幅制限のあるS3互換ストレージでのBR復元失敗リスクの低減
    影響対象帯域幅制限が有効なS3互換ストレージサービス

    ストリーム停止時の保護機能によってダウンロード要求が中断され、その後、最初から再開して「ストリーミングエラー」で失敗することがありました。このリリースでは、この復元失敗が起きる可能性を低減しますが、完全には解消しません。

    - Reduce the possibility of BR failing to restore data from S3-compatible storage services when the bandwidth limits on these services are enabled #18846 @ kennytm
    - tikv/tikv#18846
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TiCDC のカラム型パーティションディスパッチャーで発生するパニックの修正
    影響対象仮想列を含む TiCDC のカラム型パーティションディスパッチャー
    - Fix a panic that could occur when configuring a column-type partition dispatcher that includes virtual columns #12241 @ wk989898
    docs.pingcap.com/tidb/stable/release-8.5.4
  • DDL puller のクローズ時に発生するパニックの修正
    影響対象DDL puller をクローズする TiCDC 構成

    DDL puller をクローズするとパニックが発生することがありました。このリリース以降、クローズしてもパニックは発生しません。

    - Fix a panic that could occur when closing the DDL puller #12244 @ wk989898
    docs.pingcap.com/tidb/stable/release-8.5.4
  • Azure Blob Storage を使用する changefeed タスクの停止を修正
    影響対象Azure Blob Storage をダウンストリームに使用する TiCDC changefeed

    この構成ではタスクが停止することがありました。このリリースで問題を修正しています。

    - Fix the issue that changefeed tasks might get stuck when using Azure Blob Storage as the downstream #12277 @ zurakutsia
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TiCDC による DROP FOREIGN KEY DDL の複製修正
    影響対象下流へ DDL を複製する TiCDC の構成(推定)

    DROP FOREIGN KEY DDL を下流へ複製する際、送信されていませんでした。現在は複製されます。

    - Fix the issue that DROP FOREIGN KEY DDL is not replicated to the downstream #12328 @ 3AceShowHand
    docs.pingcap.com/tidb/stable/release-8.5.4

機能・改善11

  • gRPC 過負荷時の待機時間メトリクス
  • テーブル単位の分布検査と再分散

    利用条件 v8.5.4 以降

    - Support redistributing data of a specific table (experimental) #63260 @ bufferflies
    PD automatically schedules data to be distributed as evenly as possible across all TiKV nodes in a cluster. However, this automatic scheduling focuses on the cluster as a whole. In some cases, even if the cluster-wide data distribution is balanced, the data of a specific table might still be unevenly distributed across TiKV nodes.
    Starting from v8.5.4, you can use the SHOW TABLE DISTRIBUTION statement to check how the data of a specific table is distributed across all TiKV nodes. If the data distribution is unbalanced, you can use the DISTRIBUTE TABLE statement to redistribute the table's data (experimental) to improve load balancing.
    Note that redistributing the data of a specific table is a one-time task with a timeout limit. If the distribution task is not completed before the timeout, it will automatically exit.
    docs.pingcap.com/tidb/stable/release-8.5.4
  • TiDB、パーティションテーブルの非一意列に対するグローバルインデックスをサポート

    利用条件 TiDB v8.5.4 以降

    - Support creating global indexes on non-unique columns of partitioned tables #58650 @ Defined2014 @ mjonss
    Starting from v8.3.0, you can create global indexes on unique columns of partitioned tables in TiDB to improve query performance. However, creating global indexes on non-unique columns was not supported. Starting from v8.5.4, TiDB removes this restriction, enabling you to create global indexes on non-unique columns of partitioned tables, which enhances the usability of global indexes.
    For more information, see documentation .
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 選択可能な TiCDC の新アーキテクチャ

    利用条件 TiCDC の設定項目 newarch を true に設定

    - Introduce a new TiCDC architecture option for improved performance, scalability, and stability #442 @ CharlesCheung96
    This new architecture redesigns TiCDC core components and optimizes its data processing workflows, while maintaining compatibility with the configuration, usage, and APIs of the classic TiCDC architecture .
    When configured to use this new architecture, TiCDC achieves near-linear scalability and can replicate millions of tables with lower resource consumption. It also reduces changefeed latency and delivers more stable performance in scenarios with high write workloads, frequent DDL operations, and cluster scaling. Note that the new architecture currently has some initial limitations .
    To use the new architecture, set the TiCDC configuration item newarch to true .
    For more information, see documentation .
    docs.pingcap.com/tidb/stable/release-8.5.4
  • SELECT リスト内サブクエリの非相関化制御変数の追加
    tidb_opt_enable_no_decorrelate_in_select Newly added Controls whether to decorrelate subqueries in the SELECT list. The default value is OFF . #51116 @terry1purcell
    docs.pingcap.com/tidb/stable/release-8.5.4
  • EXISTS サブクエリーの書き換え制御用変数の追加
    tidb_opt_enable_semi_join_rewrite Newly added Controls whether to rewrite EXISTS subqueries. The default value is OFF . #44850 @terry1purcell
    docs.pingcap.com/tidb/stable/release-8.5.4
  • ADD INDEX 中の組み込み ANALYZE
    tidb_stats_update_during_ddl Newly added Controls whether to enable ANALYZE Embedded in DDL Statements . The default value is OFF . When it is enabled, the ADD INDEX DDL statement collects statistics for the new index during execution, allowing the optimizer to use the index immediately after it is added. Note that enabling this variable might increase DDL execution time when adding indexes to large tables. #57948 @terry1purcell @AilinKid
    docs.pingcap.com/tidb/stable/release-8.5.4
  • IN サブクエリ内のセミジョインに対する semi_join_rewrite のサポート

    利用条件 semi_join_rewrite ヒントを IN サブクエリ内のセミジョインに適用

    - Support applying the semi_join_rewrite hint to Semi Joins in IN subqueries #58829 @ qw4990
    docs.pingcap.com/tidb/stable/release-8.5.4
  • Grafana の SQL 実行時間概要パネルへのバックオフメトリクス追加
    - Add the backoff metric to the Performance Overview > SQL Execute Time Overview panel in Grafana to facilitate debugging #61441 @ dbsid
    docs.pingcap.com/tidb/stable/release-8.5.4
  • scatter-role と engine の各次元にまたがる PD のテーブル単位 Region 分散
    - Support scattering Regions at the table level to achieve balanced distribution across scatter-role and engine dimensions #8986 @ bufferflies
    docs.pingcap.com/tidb/stable/release-8.5.4
  • 未サポートの DDL タイプをフィルタリングする TiCDC の機能

    利用条件 フィルター設定の ignore-txn-start-ts パラメーター

    - Support filtering unsupported DDL types through the ignore-txn-start-ts parameter in the filter configuration #12286 @ asddongmen
    docs.pingcap.com/tidb/stable/release-8.5.4

依存関係の更新1

    ほか1件(いずれもセキュリティへの言及なし)
    • - Upgrade the Golang version from 1.23.0 to 1.23.12 and update related dependencies #9788 @ JmPotato
    その他の変更50
    • cleanup_worker におけるコンパクションタスクの重複キューイング
    • SST取り込み互換性ガードの動作
    • Titan のリージョンサイズ推定に関する問題
    • IMPORT INTOのクリーンアップ失敗に関する問題の記載
    • Tick(CompactCheck) の処理遅延を確認
    • リソース制御の自動優先度リミッターによる読み取り遅延
    • SSTファイル数の増加に伴う非同期スナップショットのテールレイテンシー
      - tikv/tikv#18743
      - Optimize the tail latency of async snapshot and write operations in environments with a large number of SST files #18743 @ Connor1996
      github.com/tikv/tikv/releases/tag/v8.5.4
    • BR リストア時のダウンロード失敗ログの問題
    • RocksDB のマニフェストサイズ既定値の引き上げ案
    • ストアサイズの高頻度報告に関する問題の記録
    • SST importerのキャッシュにおけるデッドロック問題の記載
    • tikv-cdcのアサーション失敗によるパニックの記録
    • RawRecords top-N 集計の提案
    • TiKV の RocksDB 書き込み時クラッシュ問題の報告
    • TiFlash MPP タスクのグレースフルシャットダウン
      - Support gracefully shutting down TiFlash #10266 @ gengliqi
      When shutting down a TiFlash server, TiFlash now lets currently running MPP tasks continue for a configurable timeout duration, while rejecting new MPP task requests. The default timeout duration is 600 seconds, and you can adjust it using the flash.graceful_wait_shutdown_timeout configuration item.
      - If all running MPP tasks finish before the timeout duration expires, TiFlash shuts down immediately.
      - If there are still unfinished MPP tasks when the timeout duration expires, TiFlash shuts down forcibly.
      For more information, see documentation .
      TiFlash flash.graceful_wait_shutdown_timeout Newly added Controls the maximum wait time (in seconds) for a graceful TiFlash shutdown. The default value is 600 . When shutting down TiFlash, it continues executing unfinished MPP tasks but no longer accepts new MPP tasks. If all MPP tasks finish before the timeout, TiFlash shuts down immediately; otherwise, it is forcibly shut down after the timeout expires. #10266 @gengliqi
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 新規 TiFlash ノードへのクエリ前の TiDB のデフォルト待機時間の削除
      tidb_mpp_store_fail_ttl Modified Changes the default value from 60s to 0s . This means TiDB no longer needs to wait before sending queries to newly started TiFlash nodes, as delays are no longer necessary to prevent query failures. #61826 @gengliqi
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiKV の rocksdb.max-manifest-file-size デフォルト値の引き上げ
      TiKV rocksdb.max-manifest-file-size Modified Changes the default value from 128MiB to 256MiB to avoid frequent manifest file compactions that could affect overall performance when a single TiKV node contains a large number of SST files. #18889 @glorv
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiCDC にテーブル分割設定 scheduler.region-count-per-span を追加
      TiCDC scheduler.region-count-per-span Newly added Introduced in the TiCDC new architecture . During changefeed initialization, TiCDC splits tables that meet the split conditions according to this parameter. Each split sub-table contains at most region-count-per-span Regions. The default value is 100 .
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB の DECIMAL 挿入時における小数桁数超過値の切り捨て受け入れ
      Starting from v8.5.4, TiDB aligns its behavior with MySQL when inserting data into a DECIMAL column: if the number of decimal places exceeds the column's defined scale, TiDB automatically truncates the extra digits and inserts the truncated data successfully, regardless of how many extra decimal places there are. In earlier TiDB versions, if the number of decimal places in the inserted DECIMAL value exceeded 72, the insertion fails and returns an error. For more information, see Connect to TiDB using JDBC .
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB の推定戦略の最適化
      - Optimize the estimation strategy when the tidb_opt_ordering_index_selectivity_ratio system variable takes effect #62817 @ terry1purcell
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB オプティマイザーのインデックス選択ロジックの調整
      - Adjust the optimizer selection logic to make newly created indexes more likely to be chosen in certain scenarios #57948 @ terry1purcell
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 異なる値の数が少ない列に対する TiDB のクエリ推定を最適化
      - Optimize the query estimation logic for columns with a small number of distinct values (NDV) #61792 @ terry1purcell
      docs.pingcap.com/tidb/stable/release-8.5.4
    • LIMIT OFFSET を使用する TiDB Index Join クエリの推定値最適化
      - Optimize the estimation strategy for Index Join queries that include LIMIT OFFSET #45077 @ qw4990
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB の範囲外推定の最適化
      - Optimize the out-of-range estimation strategy when statistics are not collected in time #58068 @ terry1purcell
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB 監査ログへのステートメント ID 情報の追加
      - Add statement ID information to the audit log plugin #63525 @ YangKeao
      docs.pingcap.com/tidb/stable/release-8.5.4
    • Raft GC のチェックを 2 段階に分割
      - Split the GC check process in the Raft module into two phases to improve the efficiency of garbage collection for redundant MVCC versions in Regions #18695 @ v01dstar
      - tikv/tikv#18695
      docs.pingcap.com/tidb/stable/release-8.5.4
    • Region MVCC GC 処理を GC ワーカースレッドへ移行
      - Change the GC handling logic for Region MVCC to be executed by GC worker threads, unifying the overall GC processing logic #18727 @ v01dstar
      docs.pingcap.com/tidb/stable/release-8.5.4
    • CPU クォータに応じてスケーリングする gRPC スレッドプールサイズのデフォルト設定
      - Optimize the calculation method of the default gRPC thread pool size by making it dynamically calculated based on total CPU quota instead of a fixed value, avoiding performance bottlenecks caused by insufficient gRPC threads #18613 @ LykxSassinator
      docs.pingcap.com/tidb/stable/release-8.5.4
    • PD の不要なエラーログ出力を削減
      - Reduce unnecessary error logs #9370 @ bufferflies
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiFlash の TableScan で不要な読み取りをスキップ
      - Skip unnecessary data reads to improve TableScan performance #9875 @ gengliqi
      docs.pingcap.com/tidb/stable/release-8.5.4
    • ワイドで疎なテーブル向け TiFlash TableScan のパフォーマンス最適化
      - Optimize TableScan performance on wide tables with many columns and sparse data (that is, lots of NULL or empty values) in TiFlash #10361 @ JaySon-Huang
      docs.pingcap.com/tidb/stable/release-8.5.4
    • ベクトルインデックス追加時の TiFlash の CPU オーバーヘッド削減
      - Reduce TiFlash CPU overhead caused by adding vector indexes in clusters with many tables #10357 @ Lloyd-Pottiger
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 不要なRaftコマンドに対するTiFlashの不要なログ出力を削減
      - Minimize unnecessary log output when processing useless Raft commands to reduce log volume #10467 @ JaySon-Huang
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 小規模なパーティション分割テーブルでのTiFlash TableScan の性能向上
      - Improve TableScan performance on small partitioned tables in TiFlash #10487 @ JaySon-Huang
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB Data Migration における upstream GTID_MODE の大文字小文字を区別しない照合
      - Support case-insensitive matching when retrieving the upstream GTID_MODE #12167 @ OliverS929
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiFlash 分離読み取りでの USE INDEX ヒントの不具合修正
      - Fix the issue that the use index hint does not take effect when tidb_isolation_read_engines is set to tiflash #60869 @ Lloyd-Pottiger
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiDB のプリペアドステートメントにおける Decimal 型の処理を修正
      - Fix the issue that the handling of Decimal types in prepared statements is inconsistent with MySQL #62602 @ ChangRui-Ryan
      docs.pingcap.com/tidb/stable/release-8.5.4
    • L0 への過大な SST ファイル取り込み時のフロー制御修正
      - Fix the issue that ingesting excessively large SST files into L0 triggers flow control #63466 @ CbcWestwolf
      docs.pingcap.com/tidb/stable/release-8.5.4
    • CPU とメモリーの比率が 1:2 の場合のグローバルソートの修正
      - Fix the issue that global sorting is blocked when the CPU-to-memory ratio is 1:2 #60951 @ wjhuang2016
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 保留中のDXFタスクをキャンセルできない問題の修正
      - Fix the issue that pending Distributed eXecution Framework (DXF) tasks cannot be canceled when the number of tasks exceeds 16 #63896 @ D3Hunter
      docs.pingcap.com/tidb/stable/release-8.5.4
    • select 1 from dual でインスタンスレベルのプランキャッシュを有効化
      - Fix the issue that select 1 from dual cannot use the instance-level plan cache #63075 @ time-and-fate
      docs.pingcap.com/tidb/stable/release-8.5.4
    • クエリの結合順序変更によるプランナーの失敗を修正
      - Fix the issue that changing the join order might cause the planner to fail #61715 @ hawkingrei
      docs.pingcap.com/tidb/stable/release-8.5.4
    • ONLY_FULL_GROUP_BY の負の値に対する検証失敗の修正
      - Fix the issue that setting ONLY_FULL_GROUP_BY to a negative value causes validation failure #62617 @ AilinKid
      docs.pingcap.com/tidb/stable/release-8.5.4
    • DP 結合順序アルゴリズムが誤った実行計画を生成する問題の修正
      - Fix the issue that the DP join order algorithm might generate an incorrect plan #63353 @ winoros
      docs.pingcap.com/tidb/stable/release-8.5.4
    • ADD COLUMN と UPDATE の同時実行時に発生するエラーの修正
      - Fix the issue that running ADD COLUMN and UPDATE statements concurrently might cause errors #60047 @ L-maple
      docs.pingcap.com/tidb/stable/release-8.5.4
    • Merge Join のフィルター条件のコスト計算の修正
      - Fix the issue that Merge Join might omit filter conditions when calculating costs #62917 @ qw4990
      docs.pingcap.com/tidb/stable/release-8.5.4
    • PD Client のリトライ戦略初期化の修正
      - Fix the issue that the PD Client retry strategy is not initialized correctly #9013 @ rleungx
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TSO Follower Proxyのエラー処理の修正
      - Fix the incorrect error handling logic of TSO Follower Proxy #9188 @ Tema
      docs.pingcap.com/tidb/stable/release-8.5.4
    • TiFlash クエリ失敗の修正
      - Fix the issue that queries might fail when queried columns contain a large number of NULL values #10340 @ Lloyd-Pottiger
      docs.pingcap.com/tidb/stable/release-8.5.4
    • 特殊なスキーマを含む場合のリストアポイント作成失敗の修正
      - Fix the issue that causes restore point creation to fail when backed-up tables include certain special schemas #63663 @ RidRisR
      docs.pingcap.com/tidb/stable/release-8.5.4

    整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。