ACP2E-4894: New orders appear in the Admin Orders grid with a delay when asynchronous indexing is enabled

The ACP2E-4894 patch fixes the issue where new orders appear with a delay in the Admin Orders grid when asynchronous indexing is enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.82 is installed. The patch ID is ACP2E-4894. Please note that 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.8-p4

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p5
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

Issue where new orders appear with a delay in the Admin order management grids when asynchronous indexing is enabled on high-volume stores.

Steps to reproduce:

  1. Enable asynchronous indexing by running bin/magento config:set dev/grid/async_indexing 1.
  2. Create 50000 orders that are missing from sales_order_grid.
  3. Run bin/magento cron:run until sales_grid_order_async_insert processes the backlog and sales_grid_async_last_entity_id_sales_order_grid reaches the latest order entity_id.
  4. Verify that sales_grid_async_last_entity_id_sales_order_grid matches the highest processed entity_id.
  5. Run bin/magento cron:run again after the backlog is cleared.
  6. Verify whether sales_grid_async_last_entity_id_sales_order_grid resets to 10000.
  7. Place a new order on the storefront.
  8. Run bin/magento cron:run again to trigger sales_grid_order_async_insert.
  9. Log in to the Admin and navigate to Sales > Orders.

Expected results:

On the next cron run, new orders are added to the sales_order_grid table and appear in Admin > Sales > Orders.

Actual results:

  1. After the backlog clears, sales_grid_async_last_entity_id_sales_order_grid resets to 10,000.
  2. Subsequent cron runs restart from the lower cursor and repeatedly reprocess older ranges.
  3. Backlog processing is delayed because each cron run may insert only part of the missing data.

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:

recommendation-more-help
commerce-operations-help-tools