Error when updating a menu link
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3542349. --> Reported by: [claudiu.cristea](https://www.drupal.org/user/56348) Related to !43 >>> <p>In a project we hit this error while saving/updating a menu link content:</p> <blockquote><p> Drupal\Core\Entity\EntityStorageException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: DELETE FROM "babel_source" WHERE hash NOT IN (SELECT DISTINCT hash FROM "babel_source_instance"); Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage-&gt;save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).</p> <p>Drupal\Core\Database\StatementWrapperIterator-&gt;execute() (Line: 851)<br> Drupal\Core\Database\Connection-&gt;query() (Line: 200)<br> Drupal\babel\BabelStorage-&gt;updateStatusTable() (Line: 99)<br> Drupal\babel\BabelStorage-&gt;delete() (Line: 47)<br> Drupal\babel_menu_link_content\BabelMenuLinkContentService-&gt;updateSourcesForLink() (Line: 47)<br> Drupal\babel_menu_link_content\Hook\BabelMenuLinkContentHook-&gt;updateMenuLinkContent() (Line: 32)<br> babel_menu_link_content_menu_link_content_update()<br> call_user_func_array() (Line: 416) </p></blockquote> <p>It seems that the SQL statement needs some attention</p>
issue