Log messages exhaust disc space

Created on 12 March 2024, 9 months ago
Updated 8 April 2024, 8 months ago

Problem/Motivation

Log messages often exhaust disc space for many reasons both inside and outside of AMA.

The dblog module is installed because it's a dependency of migrate_drupal_ui that AMA extends.

On my current migration, it resulted in 190GB of storage on the watchdog table because of the below error that's addressed in another MR:

a:6:{s:5:"%type";s:24:"User deprecated function";s:8:"@message";O:25:"Drupal\Core\Render\Markup":1:{s:9:" * string";s:235:"Calling Migration::getMigrationDependencies() without expanding the plugin IDs is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. In most cases, use getMigrationDependencies(TRUE). See 

Steps to reproduce

Run AMA on any D10 migration.

Proposed resolution

We could support a "debug mode" for AMA or refactor our own log messages, but the log entries often happen in core and contrib modules.

So I'm thinking we run dblog_cron() whenever a migration starts to delete log messages based on the "row_limit" config key of the "dblog.settings" config.

Remaining tasks

Implement resolution.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.9

Component

Solution Suggestions

Created by

πŸ‡ΊπŸ‡ΈUnited States jienckebd

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

Comments & Activities

Production build 0.71.5 2024