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

NOTE
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.

Issue

The quoteItemCleaner consumer executes only one message on each execution.

Steps to reproduce:

  1. Check the queue_message_status database table and make sure all the existing queue messages are in a “Complete” state (status ID 4).

  2. Stop auto Adobe Commerce cron execution.

  3. Create two or three simple products.

  4. Do a mass delete on those three simple products.

  5. In the queue_message_status table you see that there are three new records for the catalog_product_removed_queue topic with status ID 2 (new record).

  6. 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:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to the Patches available in QPT in our developer documentation.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a