[Bug]: alter add foreign key concurrent 50 threads reported w-w conflict error #20783
Open
1 task done
Labels
kind/bug
Something isn't working
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
Milestone
Is there an existing issue for the same bug?
Branch Name
2.0-dev
Commit ID
d570bbd
Other Environment Information
Actual Behavior
测试场景:alter table add foreign key并发50执行5分钟
测试结果:sql报错w-w conflict
测试sql:alter table table_{id} add constraint fk_{id} foreign key(col2) references fk_01(col1);(100个表创建外键依赖fk_01 col1列)
单独顺序执行是可以的
ddl:
create table concurrent_test.fk_01(col1 int not null primary key,col2 int);insert into concurrent_test.fk_01 values (90,5983),(100,734),(190,50);
create table concurrent_test.table_$i(col1 bigint primary key auto_increment,col2 int)
另外同时并发alter add foreign和alter drop foreign key测试,两个sql也是会报w-w conflict
Expected Behavior
No response
Steps to Reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: