When there is heavy load I am getting the
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: INSERT INTO {domain_source} (nid, domain_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array
(
[:db_insert_placeholder_0] => 101712
[:db_insert_placeholder_1] => 0
)this is called in hook_node_update(). Any Idea on solution ?
Comments
Comment #1
Letharion commentedUpdating the category and priority of the issue.
Please read the instructions on how those fields work before posting issues.
Comment #2
Letharion commentedActually, you should probably try with a recent version of the module, instead of that year old release. Please try 2.19 and report back.
Comment #3
Dinesh Kumar Sarangapani commentedHi Letharion,
Thank you, will try with new release and will report.
Comment #4
agentrickardWell, this is a general MySQL failure symptomatic of a larger issue. We cannot provide module-specific support here. The transaction lock is part of node_save().
This issue might be re-opened as a core support issue if you fail to find a solution.
Comment #5
Dinesh Kumar Sarangapani commentedThanks agentrickard, I am trying out with new domain module and also searching for solution. Will move to core issue if am not finding any solution
Comment #6
Dinesh Kumar Sarangapani commentedUpdated to the latest stable release of Domain module (7.x-3.4), followed the same stress test posted in the Drupal core issue . Added the domains as part of node object.
Executed with concurrency (for example with seq 1 100 | xargs -L 1 -P 15 drush php-script stress-node.script), Found Deadlock in
The innodb status is
Will this information help ? Should this issue be posted to Drupal's core ?
Comment #7
agentrickardCore. As an attachment. My understanding is that the lock is part of the node_save() transaction.