[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
MDVA-40550:重新索引後前端上遺失的產品
MDVA-40550修補程式可解決重新索引導致部分或全部店麵類別遺失產品的問題。 安裝品質修補工具(QPT) 1.1.6時,即可使用此修補程式。 修補程式ID為MDVA-40550。 請注意,此問題已排程在Adobe Commerce 2.4.4中修正。
受影響的產品和版本
已為Adobe Commerce版本建立修補程式:
- Adobe Commerce (所有部署方法) 2.4.2-p1
與Adobe Commerce版本相容:
- Adobe Commerce (所有部署方法) 2.3.5 - 2.4.3-p1
magento/quality-patches套件更新至最新版本,並在Quality Patches Tool上檢查相容性:搜尋修補程式頁面。 使用修補程式ID作為搜尋關鍵字,以尋找修補程式。問題
要再現的步驟:
-
建立產品。
-
將索引子切換為 依排程 更新。
- 將產品指派至類別。
-
啟用xdebug並在
\Magento\Indexer\Model\Indexer::reindexAll和\Magento\Indexer\Model\IndexMutex::execute中建立xdebug中斷點。 -
使用下列命令執行 的 完整重新索引
catalog_category_product:code language-bash bin/magento indexer:reindex catalog_category_product- 等候執行在中斷點
\Magento\Indexer\Model\Indexer::reindexAll停止。
- 等候執行在中斷點
-
在另一個主控台中,使用下列命令並行執行 部分重新索引:
code language-bash bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 -
等候執行在中斷點
\Magento\Indexer\Model\IndexMutex::execute停止。 它會鎖定catalog_category_product索引子。 -
繼續執行
catalog_category_product的完整重新索引,並等候鎖定逾時(60秒)。
預期結果:
主控台中沒有錯誤訊息。
實際結果:
您會收到下列錯誤:
無法取得索引的鎖定: catalog_category_product。
套用修補程式
若要套用個別修補程式,請根據您的部署方法使用下列連結:
- Adobe Commerce或Magento Open Source內部部署: Quality Patches Tool 指南中的>使用狀況Quality Patches Tool。
- 雲端基礎結構上的Adobe Commerce:雲端基礎結構上的Commerce指南中的升級和修補程式>套用修補程式。
相關閱讀
若要進一步瞭解「品質修補程式」工具,請參閱:
- 已發行品質修補程式工具:支援知識庫中可自助提供品質修補程式的新工具。
- 使用指南中的「品質修補工具」Quality Patches Tool,檢查是否有修補程式可用於您的Adobe Commerce問題。
如需QPT中其他修補程式的詳細資訊,請參閱Quality Patches Tool指南中的:搜尋修補程式Quality Patches Tool。