gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

"--attempt-instant-ddl" flag causing some issues with hooks and is incompatible with --execute flag

Open YazanAlnasr opened this issue 1 year ago • 7 comments

when I tried to use the --attempt-instant-ddl flag, I faced two issues:

  • the on-success hook will not trigger after the migration is done.
  • even if I don't use the --execute flag, the migration will still happen anyway.

YazanAlnasr avatar Jan 08 '24 06:01 YazanAlnasr

If it's not too much effort @timvaillancourt, I would suggest adding this to the docs around --attempt-instant-ddl, as looking at this, the original PR, and other issues led me to pulling this flag out of our production gh-ost scripts for safety.

I know you're very busy, and this is a low priority task, however.

hakusaro avatar Apr 03 '24 20:04 hakusaro

I just also got bitten by the fact that the migration is executed without the "--execute" flag when "--attempt-instant-ddl" is used.

luddd3 avatar Aug 07 '24 09:08 luddd3

@YazanNoon thanks for the report. The 2nd issue sounds dangerous so I have made a fix for that first here. If you have time to help validate the fix before/after merge, that would be very helpful 🙇

cc @hakusaro / @luddd3

timvaillancourt avatar Aug 13 '24 21:08 timvaillancourt

thanks a lot @timvaillancourt! the PR looks good!

YazanAlnasr avatar Aug 14 '24 05:08 YazanAlnasr

Thanks so much! It looks good to me! ^_^

hakusaro avatar Aug 14 '24 06:08 hakusaro

Thank you!

luddd3 avatar Aug 14 '24 11:08 luddd3

I think the

the on-success hook will not trigger after the migration is done.

is fixed with the linked PR above

artemvovk avatar Nov 05 '24 19:11 artemvovk