pingcap / pingcap/tidb

slow owner election after disabling auto analyze and restart cluster

Open
#64,039 1 comment 0 reactions 0 assignees View on GitHub
component/ddl may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major type/bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.