The MDVA-40550 patch solves the issue where reindexing results in some or all of storefront categories missing products. This patch is available when the Quality Patches Tool (QPT) 1.1.6 is installed. The patch ID is MDVA-40550. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.4.
The patch is created for Adobe Commerce version:
Compatible with Adobe Commerce versions:
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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.
Steps to reproduce:
Create a product.
Switch indexers to Update by schedule.
Enable xdebug and make xdebug breakpoint in \Magento\Indexer\Model\Indexer::reindexAll
and \Magento\Indexer\Model\IndexMutex::execute
.
Run a full reindex of catalog_category_product
with the command:
bin/magento indexer:reindex catalog_category_product
\Magento\Indexer\Model\Indexer::reindexAll
.In another console, run a partial reindex in parallel with the command:
bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1
Wait for the execution to stop on the breakpoint \Magento\Indexer\Model\IndexMutex::execute
. It will lock the catalog_category_product
indexer.
Resume execution of the full reindex of catalog_category_product
and wait for a lock timeout (60 seconds).
Expected results:
No error messages in console.
Actual results:
You get the following error:
Could not acquire lock for index: catalog_category_product.
To apply individual patches, use the following links depending on your deployment method:
To learn more about Quality Patches Tool, refer to:
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.