ACSD-67091: Catalog rule product index cleanup fails due to maximum writeset size during large deletions
The ACSD-67091 patch fixes the issue where the catalog rule product index cleanup fails due to maximum writeset size during large deletions. This patch is available when the Quality Patches Tool (QPT) 1.1.76 is installed. The patch ID is ACSD-67091. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p3
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
Catalog rule product index cleanup fails with a maximum writeset size error during large deletions.
Prerequisites:
Your instance must have multiple websites, more than 100,000 products, several customer groups, and more than 20 catalog price rules.
Steps to reproduce:
-
Run reindexing to generate data and populate the
catalogrule_producttable using the following command:code language-none bin/magento indexer:reindex catalogrule_product -
Make multiple catalog changes, and then run reindexing again.
-
Observe that the
catalogrule_producttable is cleared using a single delete operation.
Expected results:
- Large
catalogrule_producttables are cleared without issues. - The indexer deletes data in manageable batches to avoid transaction limits.
- No critical performance degradation or failures occur during standard index operations.
Actual results:
- The
catalogrule_producttable is cleared using a single large delete query that affects more than 50 million records. - MySQL returns the error: WSREP: transaction size limit (2147483647) exceeded.
- The indexer operation fails due to writeset size limitations.
- Database performance degrades because millions of rows are deleted in a single transaction.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe 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.