TiDB commits

TiDB, PD, TiKVのコミットを記録しています。

TiDB commits on 2022-04-19

github.com

*: fix index join on partition table data race by tiancaiamao · Pull Request #33979 · pingcap/tidb · GitHub

Index joinで利用するPartitionPruningがスレッドセーフではないため、レースコンディションが発生する可能性があったため、sync.Onceを利用して修正しています。その他にもpushDownNotとsession.ParseSQLで発生しうるレースコンディションを修正しています。

executor: fix data race in TestSlowQueryOOM by crazycs520 · Pull Request #34016 · pingcap/tidb · GitHub

TestSlowQueryOOMで発生しうるレースコンディションを修正しています。

planner: introduce the new cost interface by qw4990 · Pull Request #33990 · pingcap/tidb · GitHub

tidb_enable_new_cost_interfaceシステム変数によって制御される新しいコスト計算のインターフェースを導入しています。現在のコスト計算は、物理的な最適化(?)と強固に結びついており、それを解消するためとのこと。

action: fix breaking br compatible test by 3pointer · Pull Request #34015 · pingcap/tidb · GitHub

BRのcompatible testの前にgo mod tidyを実行しています。

dumpling : reports an error for non-exist tables by docsir · Pull Request #29348 · pingcap/tidb · GitHub

Dumplingにおいて、対象テーブルが存在しないときの振る舞いをmydumperやBRと合わせ、対象テーブルが存在しないというエラーを返すように変更しています。

lightning: only retry on retryable error on import engine by D3Hunter · Pull Request #33794 · pingcap/tidb · GitHub

Lightningでリトライ可能なエラーの時のみリトライするように変更しています。

planner: remove misleading comments and simplify code by gozssky · Pull Request #34045 · pingcap/tidb · GitHub

削除されたResultSetNodeへのキャッシュに関するコメントやコードが残っていたのを削除しています。

diagnostics: fix slow read from `CLUSTER_STATEMENTS_SUMMARY_HISTORY` by zhongzc · Pull Request #34087 · pingcap/tidb · GitHub

CLUSTER_STATEMENTS_SUMMARY_HISTORYからの読み込みが遅かった問題をgRPCの最大メッセージサイズを増加させることで修正しています。