GitHub user yvsubhash opened a pull request:
https://github.com/apache/cloudstack/pull/1762
CLOUDSTACK-9595 Transactions are not getting retried in case of datab…
CLOUDSTACK-9595 Transactions are not getting retried in case of database deadlock errors
Problem Statement
--------------------------
MySQLTransactionRollbackException is seen frequently in logs
Root Cause
----------------
Attempts to lock rows in the core data access layer of database fails if there is a possibility
of deadlock. However Operations are not getting retried in case of deadlock. So introducing
retries here
Solution
-----------
Operations would be retried after some wait time in case of dead lock exception
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yvsubhash/cloudstack CLOUDSTACK-9595
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1762.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1762
----
commit 600ae7cbee28d43e6007979b87e150abd2a70a7e
Author: subhash yedugundla <venkatasubhashnaidu.yedugundla@citrix.com>
Date: 2016-06-14T10:16:16Z
CLOUDSTACK-9595 Transactions are not getting retried in case of database deadlock errors
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---