MDVA-40550: Missing products on the storefront during reindexing
Missing products on the storefront during reindexing. Quality patch MDVA-40550 for magento/framework applies to Magento Open Source and Adobe Commerce 2.3.5 to 2.4.3-p3.
- Categories
- Catalog/Product
- Components
- magento/framework, magento/module-catalog, magento/module-indexer
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.6
Issue
Fixes the issue with missing products on the storefront during reindexing.
Steps to reproduce
1. Create a product. 1. Switch indexers to Update by schedule. * Assign the product to a category. 1. Enable xdebug and make xdebug breakpoint in \Magento\Indexer\Model\Indexer::reindexAll and \Magento\Indexer\Model\IndexMutex::execute. 1. Run a full reindex of catalog_category_product with the command: bin/magento indexer:reindex catalog_category_product * Wait for the execution to stop on the breakpoint \Magento\Indexer\Model\Indexer::reindexAll. 1. In another console, run a partial reindex in parallel with the command: bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 1. Wait for the execution to stop on the breakpoint \Magento\Indexer\Model\IndexMutex::execute. It will lock the catalog_category_product indexer. 1. Resume execution of the full reindex of catalog_category_product and wait for a lock timeout (60 seconds).
Adobe's page lists 2.3.5 - 2.4.3-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.4.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-40550. On Cloud, add MDVA-40550 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-40550/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.3.5 <2.4.4
- Magento Open Source
- 2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3, 2.4.2-p2, 2.4.2-p1, 2.4.2, 2.4.1-p1, 2.4.1, 2.4.0-p1, 2.4.0, 2.3.7-p4, 2.3.7-p3, 2.3.7-p2, 2.3.7-p1, 2.3.7, 2.3.6-p1, 2.3.6, 2.3.5-p2, 2.3.5-p1, 2.3.5
- Adobe Commerce
- 2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3, 2.4.2-p2, 2.4.2-p1, 2.4.2, 2.4.1-p1, 2.4.1, 2.4.0-p1, 2.4.0, 2.3.7-p4, 2.3.7-p3, 2.3.7-p2, 2.3.7-p1, 2.3.7, 2.3.6-p1, 2.3.6, 2.3.5-p2, 2.3.5-p1, 2.3.5
- Patch file
- patches/os/MDVA-40550_2.4.2-p1.patch
- vendor/magento/module-catalog/Model/Indexer/Category/Product.php
- vendor/magento/module-catalog/Model/Indexer/Product/Category.php
- vendor/magento/module-indexer/Model/IndexMutex.php (added)
- vendor/magento/module-indexer/etc/di.xml
- vendor/magento/framework/Indexer/IndexMutexException.php (added)
- vendor/magento/framework/Indexer/IndexMutexInterface.php (added)
