magento / inventory

Magento Inventory Project (a.k.a MSI)
Open Software License 3.0
336 stars 247 forks source link

Inventory indexer triggers Price re-indexation #3094

Open maghamed opened 4 years ago

maghamed commented 4 years ago
The deadlock might be related to this one: 
https://github.com/magento/inventory/blob/1.2-develop/InventoryCatalog/etc/di.xml#L25

Any idea why the price gets reindexed after every inventory update?
That means that the price indexer will run after the placement of each order, in sync.
    <type name="Magento\InventoryIndexer\Indexer\SourceItem\SourceItemIndexer">
        <plugin name="priceIndexUpdater" type="Magento\InventoryCatalog\Plugin\InventoryIndexer\Indexer\SourceItem\PriceIndexUpdater"/>
    </type>

The change was added in the scope of the Bundle product support story. The existence of this plugin looks excessive and should be investigated. Dependencies between inventory and price indexes should be avoided.

m2-assistant[bot] commented 4 years ago

Hi @maghamed. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this