ACP2E-5027: Indexers don’t finish when application locking uses the file lock provider
The ACP2E-5027 patch fixes the issue where indexers never finish because they keep trying to acquire their own lock when use_application_lock is enabled and the file lock provider is configured. This patch is available when the Quality Patches Tool (QPT) 1.1.84 is installed. The patch ID is ACP2E-5027. This issue is scheduled to be fixed in Adobe Commerce 2.4.10.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.9
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.9
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
Indexers never finish because they keep trying to acquire their own lock when use_application_lock is enabled and the file lock provider is configured.
Steps to reproduce:
-
In
app/etc/env.php, enable the application lock for indexers and set the lock provider to file:code language-none 'indexer' => array ( 'use_application_lock' => true, ), 'lock' => array ( 'provider' => 'file', 'config' => array ( 'path' => '<magento_root>/var/lock', ), ) -
Run the
catalog_product_categoryindexer:code language-none bin/magento indexer:reindex catalog_product_category
Expected results:
The catalog_product_category reindex completes successfully.
Actual results:
The reindex never completes.
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