slow owner election after disabling auto analyze and restart cluster
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
use tagged playground to easily restart 😉
```
tiup playground v8.5.3 --tiflash 0 --without-monitor -T tmp
```
```
mysql --host 127.0.0.1 --port 4000 -u root -e 'set global tidb_enable_auto_analyze = OFF;'
```
restart tiup playground
```
tiup playground v8.5.3 --tiflash 0 --without-monitor -T tmp
```
```
mysql> create table test.t (c int key);
Query OK, 0 rows affected (42.045 sec)
mysql> create table test.t2 (c int key);
Query OK, 0 rows affected (0.055 sec)
```
### 2. What did you expect to see? (Required)
first and second DDL have almost same speed
### 3. What did you see instead (Required)
first DDL is slow
### 4. What is your TiDB version? (Required)
Contributor guide
Assessment
This issue has not been assessed yet.