some partition/constraints expressions will cause DDL hangs forever #50972
Labels
affects-6.1
affects-6.5
affects-7.1
affects-7.5
component/ddl
This issue is related to DDL of TiDB.
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
This issue is a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
success, in MySQL:
3. What did you see instead (Required)
The rename DDL hangs:
We can see that the hash expression is
t.id
notid
and when we rename this table, it schema load will fail:If we restart tidb server after that, the server will hang on loading schema and cannot be connected.
This also affects constraints like
CREATE TABLE t1 (a int, check(t1.a > 1));
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: