Open
Description
Preconditions (*)
- Magento2 2.4-develop
- Inventory 1.2-develop
- 100+ sources
- 1000+ items assigned to 50% or more of those sources
Steps to reproduce (*)
- With all sources assigned to a stock.
- Execute the following scenarios multiple times, simultaneously;
- Remove a source item assignment
- Add a source item assignment
- Change the qty levels for a source item across multiple sources
Expected result (*)
- The indexer should manage multiple attempts to update the index seamlessly
- Data should become eventually consistent
Actual result (*)
- Indexer processing collides in the database;
report.CRITICAL: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '-BED-Q-56-67614' for key 'PRIMARY', query was: INSERT INTO `inventory_stock_3_replica`....
report.CRITICAL: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'm2_core.inventory_stock_3_replica' doesn't exist, query was: INSERT INTO `inventory_stock_3_replica....
- Index data is left in an inconsistent/unknown state
- System performance is negatively impacted