"--attempt-instant-ddl" flag causing some issues with hooks and is incompatible with --execute flag · Issue #1365 · github/gh-ost · GitHub
Skip to content

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

Closed

Description

@YazanAlnasr

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.

Activity

  1. hakusaro commented on Apr 3, 2024

    @hakusaro

    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.

  2. luddd3 commented on Aug 7, 2024

    @luddd3

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

  3. timvaillancourt commented on Aug 13, 2024

    @timvaillancourt
    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

  4. YazanAlnasr commented on Aug 14, 2024

    @YazanAlnasr
    Author

    thanks a lot @timvaillancourt!
    the PR looks good!

  5. hakusaro commented on Aug 14, 2024

    @hakusaro

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

  6. luddd3 commented on Aug 14, 2024

    @luddd3

    Thank you!

  7. artemvovk commented on Nov 5, 2024

    @artemvovk
    Contributor

    I think the

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

    is fixed with the linked PR above

  8. meiji163 commented on Apr 8, 2026

    @meiji163
    Contributor

    Closing as fixed after #1463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions