TiDB commits

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

TiDB commits on 2022-04-18

github.com

server: use max_allowed_packet to limit the packet size. by CbcWestwolf · Pull Request #33651 · pingcap/tidb · GitHub

max_allowed_packetを実際にパケットサイズを制限するように変更しています。

executor: migrate test-infra to testify for testSuite2 by tisonkun · Pull Request #34046 · pingcap/tidb · GitHub

testSuite2をtest-infraからtestifyに移行しています。

executor: migrate test-infra to testify for executor_test.go testSuiteP2 by hawkingrei · Pull Request #34049 · pingcap/tidb · GitHub

executor_test.goのtestSuiteP2をtest-infraからtestifyに移行しています。

executor: migrate test-infra to testify for executor_test.go by tisonkun · Pull Request #34062 · pingcap/tidb · GitHub

executor_test.goのTestAdminをtest-infraからtestifyに移行しています。

session: optimize the sharding algorithm for non-transactional DMLs by ekexium · Pull Request #34050 · pingcap/tidb · GitHub

Batch DMLの処理において、指定されたバッチサイズと実際のバッチサイズが等しくなるようなシャーディングのアルゴリズムを利用しています。Tracking issue for non-transactional DMLs · Issue #33485 · pingcap/tidb · GitHub の一環とのこと。

planner: consider seek cost of probe-side for index join by qw4990 · Pull Request #33867 · pingcap/tidb · GitHub

Plannerでindex join時のコスト計算が通常のindex scanと同一のモデルを利用していたのを異なるモデルを利用するように変更しています。

lightning: enhance request log in server-mode and restore progress by D3Hunter · Pull Request #33718 · pingcap/tidb · GitHub

Lightningでログ出力内容を追加(リストアの進み具合など)しています。

server: reset accumulatedLength in readPacket() function by tiancaiamao · Pull Request #34071 · pingcap/tidb · GitHub

readPacket関数内でのaccumulatedLengthをリセットすることで、パケットサイズを正しく計算するようにしています。max_allowed_packetを利用するようになったことの一環の変更です。

lightning: replace diskQuotaLock with RWMutex by gozssky · Pull Request #34021 · pingcap/tidb · GitHub

LightningでGo 1.18よりRWMutex内でTryRLockが利用できるようになったため、こちらを利用するように変更しています。

parser: skip restoring schema name of CTE table columns by tangenta · Pull Request #33991 · pingcap/tidb · GitHub

CTEテーブルのカラムを利用している場合、そのスキーマ名をリストアしないようにしています。CTEを利用したビューで"references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them"が発生する場合があったためとのこと。