pingcap / mysql-tester

A Golang implementation of MySQL Test Framework
Apache License 2.0
63 stars 62 forks source link

set tidb_enable_analyze_snapshot druing test #77

Closed Yisaer closed 2 years ago

Yisaer commented 2 years ago

Signed-off-by: yisaer disxiaofei@163.com

ref https://github.com/pingcap/tidb/issues/36983 ref https://github.com/tikv/tikv/issues/13258

Previously, we use SI for analyze request. As RC may ignore some txnLock if the secondary keys commit havn't been finished. However, it will also meet txn conflict if we directly use maxts with SI isolevel.

Thus we decided to use tidb_enable_analyze_snapshot to control the analyze isolevel behavior, and make it enabled for mysql-test

test by https://github.com/pingcap/tidb-test/pull/1928