File tree Expand file tree Collapse file tree
localtests/panic-on-warnings-update-pk-with-duplicate-on-new-unique-index Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ drop event if exists gh_ost_test;
1313delimiter ;;
1414create event gh_ost_test
1515 on schedule every 1 second
16- starts current_timestamp + interval 8 second
16+ starts current_timestamp + interval 6 second
1717 ends current_timestamp + interval 60 second
1818 on completion not preserve
1919 enable
2222 -- This UPDATE modifies the primary key, so it will be converted to DELETE + INSERT
2323 -- The INSERT will attempt to insert email='alice@example.com' (duplicate)
2424 -- which violates the new unique index being added by the migration
25- -- Delay of 8s ensures this fires after row copy starts (throttle delays until 5s)
26- -- so the duplicate is caught during DML event application, not row copy
25+ -- Delay of 6s ensures this fires after row copy starts (throttle delays until 5s)
26+ -- but before migration completes, so duplicate is caught during DML event application
2727 update gh_ost_test set id= 10 , email= ' alice@example.com' where id= 2 ;
2828end ;;
You can’t perform that action at this time.
0 commit comments