pingcap / pingcap/tidb

tidb report "Information schema is changed" when running create table on same table concurrently

Open
#63,652 0 comments 0 reactions 0 assignees View on GitHub
component/ddl severity/moderate 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)

one example, we create the same table using multiple sessions, some might report "Information schema is changed", this error message is confusing, and not directly related the error we really meet, and the real error is hidden and not logged, it's also harder to diagnose

https://github.com/pingcap/tidb/blob/f7fe4a6843788d18dae11f386d81190bd789c0eb/pkg/executor/ddl.go#L234-L237

### 2. What did you expect to see? (Required)
we expect "Table already exist" error
### 3. What did you see instead (Required)
"Information schema is changed"
### 4. What is your TiDB version? (Required)
master

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.