Out of 100 orders, a single-digit order is regularly missing. Resource metrics are fine. This issue only occurs during the stress test, not during manual execution. The logs are being retrieved in Magento.
main.ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: SELECT `si`.* FROM `cataloginventory_stock_item` AS `si` WHERE (item_id IN (4475, 4522, 4679, 8444, 8745)) FOR UPDATE
GraphQL (3:7)
mutation {
placeOrder(input: { cart_id: "Zsasfghssdfgghfghghjgs" }) {
^
order {
{"exception":"[object] (GraphQL\\Error\\Error(code: 0): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: SELECT `si`.* FROM `cataloginventory_stock_item` AS `si` WHERE (item_id IN (4475, 4522, 4679, 8444, 8745)) FOR UPDATE at /var/www/html/vendor/webonyx/graphql-php/src/Error/Error.php:170)
[previous exception] [object] (Magento\\Framework\\DB\\Adapter\\DeadlockException(code: 1213): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: SELECT `si`.* FROM `cataloginventory_stock_item` AS `si` WHERE (item_id IN (4475, 4522, 4679, 8444, 8745)) FOR UPDATE at /var/www/html/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:672)
[previous exception] [object] (Zend_Db_Statement_Exception(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction, query was: SELECT `si`.* FROM `cataloginventory_stock_item` AS `si` WHERE (item_id IN (4475, 4522, 4679, 8444, 8745)) FOR UPDATE at /var/www/html/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php:109)
[previous exception] [object] (PDOException(code: 40001): SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /var/www/html/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php:90)"} []
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Out of 100 orders, a single-digit order is regularly missing. Resource metrics are fine. This issue only occurs during the stress test, not during manual execution. The logs are being retrieved in Magento.