Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YazanNoon opened this issue Jan 8, 2024 · 7 comments
Assignees
Labels

Comments

@YazanNoon
Copy link

YazanNoon commented Jan 8, 2024

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.
@hakusaro
Copy link

hakusaro commented Apr 3, 2024

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.

@luddd3
Copy link

luddd3 commented Aug 7, 2024

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

@timvaillancourt
Copy link
Collaborator

@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

@YazanNoon
Copy link
Author

thanks a lot @timvaillancourt!
the PR looks good!

@hakusaro
Copy link

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

@luddd3
Copy link

luddd3 commented Aug 14, 2024

Thank you!

@artemvovk
Copy link
Contributor

artemvovk commented Nov 5, 2024

I think the

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

is fixed with the linked PR above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@hakusaro @luddd3 @timvaillancourt @artemvovk @YazanNoon and others