-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
drush update-db returns exit code 0 on failure #3094
Comments
Thanks for the quick testing. I may have been a bit over-aggresive with my most recent refactor. If you have time to debug it further, I'd be appreciative. Otherwise, I'll investigate soon. |
Let's work here #3095. Unfortunately I uncovered also another bug that makes the batch process ongoing and repeating the same updates until it reaches timeout |
I had looked at it yesterday and the error message is present deep in the batch process code. It gets passed in The recent refactor did not cause this regression by the way, it also happens in 9.0.0-beta7 before the refactor. |
I wonder if we could work on the lines below. basically, there was an error if $data['error_status] = 1. That would replace the check for drush_get_error() and $data['context'] (I think). Hopefully thats enough to get someone started. Lines 141 to 145 in fc39fc4
|
Edit: I first put another example, but it's another bug: #3127 |
It is confusing because involves several levels of nesting. First, updatedb sets a batch in The batch process itself is succesful, this is why error_status is 0 and it's ok. What we want is to capture the batch results and identify what means a failure in the context of updatedb command. See #3188 |
When I am executing database updates and one of the updates fails, then the batch process is aborted, but the cache is still rebuilt and the command returns a success message and exit code 0.
The text was updated successfully, but these errors were encountered: