-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Online DDL: read and publish gh-ost FATAL message where possible #8192
Online DDL: read and publish gh-ost FATAL message where possible #8192
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good.
Can one of the existing tests be enhanced to expect an error message?
You're absolutely right, yes, I'll add a test |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Test added. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Re-request for review 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you're into that ParseAndBind
lifestyle now. 👍👍
Heh, I actually created |
Description
When running
gh-ost
migrations, andgh-ost
fails,gh-ost
produces a detailed error log. But thevttablet
that executesgh-ost
only tells something likefailed running command: ... ... error=exit status 1
.When the user consequently runs
SHOW VITESS_MIGRATIONS LIKE '...'
they see aforementioned generic error in themessage
column:This PR provides more useful information in in
message
column.When
gh-ost
fails, it typically fails with aFATAL
log message. This PR extract thatFATAL
log message, if possible. If successful, it replaces the generic error with the more informative message from the log. Examples:Related Issue(s)
Checklist
Deployment Notes