MDVA-32655: “quoteItemCleaner” consumer executes one message per execution
The MDVA-32655 patch fixes the incorrect “in progress” message status to the correct “complete” message for consumer quoteItemCleaner
after deleting several products. This patch is available when the Quality Patches Tool (QPT) 1.0.18 is installed. The patch ID is 32655. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.3.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce on cloud infrastructure 2.3.3
Compatible with Adobe Commerce versions:
Adobe Commerce on cloud infrastructure and Adobe Commerce on-premises 2.3.0 - 2.4.2
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
The quoteItemCleaner
consumer executes only one message on each execution.
Steps to reproduce:
-
Check the
queue_message_status
database table and make sure all the existing queue messages are in a “Complete” state (status ID 4). -
Stop auto Adobe Commerce cron execution.
-
Create two or three simple products.
-
Do a mass delete on those three simple products.
-
In the
queue_message_status
table you see that there are three new records for thecatalog_product_removed_queue
topic with status ID 2 (new record). -
Run the following command to process these pending
catalog_product_removed_queue
messages:code language-bash bin/magento queue:consumers:start quoteItemCleaner --single-thread --max-messages=100
Expected results:
select * from queue_message_status s join queue q on s.queue_id = q.id where q.name = "catalog_product_removed_queue";
All the catalog_product_removed_queue
message statuses are updated to complete (ID=4).
Actual results:
Only one record out of the three is updated to “Complete” status (ID = 4). The status of the other two messages are status ID = 3 (in progress). A backlog is generated with unprocessed queue messages.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to the Patches available in QPT in our developer documentation.