system_post_update_sort_all_config can exhaust PHP memory in 9.3.0 because processing is not batched

Created on 14 December 2021, over 3 years ago
Updated 26 September 2023, over 1 year ago

Problem/Motivation

On a Drupal installation with a large number of configuration files (I have one with over 1,900), It is not possible to update Drupal core to 9.3.0. When the update gets to the "sort_all_config" post-update hook, that hook fails with allowed memory exhausted.

Proposed resolution

The function system_post_update_sort_all_config() in system.post_update.php attempts to update all configuration files in a single execution. This should be converted to a batch process.

Remaining tasks

Review the patch file provided in this issue.

Release notes snippet

TBD

πŸ› Bug report
Status

Fixed

Version

9.3

Component
SystemΒ  β†’

Last updated about 23 hours ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States paulmckibben Atlanta, GA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024