-
-
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 should re-boot Drupal after the update_N's and before the post updates #2617
Comments
test_drupal_reboot_before_post_updates.patch.txt Here is a test patch for Drupal 8 and the hash created in the both methods should be different - that should be enough verification that the problem is solved. |
The cache clear in question was added in #1603. Perhaps @jhedstrom can help with this issue as I'm busy on client work ATM. |
I've just took a look at how Drupal is running the updates and drupal is clearing the cache between the update_N's and the post updates - but there is one difference between Drupal and Drush executing the updates - Drupal clears the caches in the same process, Drush starts a new one - so we should probably only clear the caches in the same process? |
Just chatted with @hchonov, I think he is correct. Drush forks a process for the batch processing but then seems to process all batch operations in a single process (unless some memory limit is exceeded, but let's disregard that for now). The batch operations in this case are So it seems the correct fix is to replace the Additionally there seems to be another problem that in fact To fix that @hchonov wants to open a new issue in core to make |
Oops, made had a number twist in the issue reference, that's why it doesn't show up here, but ... Made a pull request for the above: #2620 Went with a separate method for now so that this works for all 8.* version regardless of whether/when the Drupal core problem described is fixed. (BTW, see https://www.drupal.org/node/2853152 for that) |
WIth PR mentioned above I get different hashes running |
Oh, I should note that I had to have I should note that I had to have #2619 applied as well in order for the post updates to run at all. |
Fixed in PRs |
Currently drush is executing the update_N's and the post updates in a single batch and in between is rebuilding the cache in a separate process, which is causing the static cache of the checksum service to be out-of-sync in the post updates. This is leading to all kind of bugs and there is a currently an issue on drupal.org - https://www.drupal.org/node/2851529.
The text was updated successfully, but these errors were encountered: