ACSD-66404: Cron job fails to clear changelog tables due to Galera Cluster transaction size limits
The ACSD-66404 patch fixes the issue where the cron job fails to clear changelog tables, causing Galera Cluster issues when handling large amounts of data. This patch is available when the Quality Patches Tool (QPT) 1.1.69 is installed. The patch ID is ACSD-66404. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.9.
Affected products and versions
The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6-p6, 2.4.7-p6
Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.4 - 2.4.8-p1
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Cron job not clearing changelog tables and causing Galera Cluster issues in case of large amount of data in these tables.
Steps to reproduce:
- Generate a lot of products using performance profiles.
- Perform a bulk update for all the products in the system, so there are a lot of entries in
inventory_cl
DB table. - Run the
indexer_clean_all_changelogs
cron job.
Expected results:
The indexer_clean_all_changelogs
cron job is able to perform changelog cleanup on large changelog (10+ GB) in multiple delete queries, without causing Galera Cluster issues.
Actual results:
The indexer_clean_all_changelogs
cron job performs changelog cleanup on large changelog (10+ GB) in a single delete query, causing Galera Cluster issues.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide