Getting database deadlock in Bonita with MYSQL


We are using Bonita 7.6.1 with MySQL 5.7.24, nowadays we are frequently getting database deadlock around the following query. And the Bonita app is throwing 500 errors with the provided log. Anyone know what is the issue here. Please help.

the query gets stuck at deadlock
insert into contract_data (scopeId, name, val, kind, tenantid, id) values (..

Bonita log

2019-10-16T06:34:21.288361394Z at
2019-10-16T06:34:21.288365594Z Caused by: com.mysql.jdbc.jdbc2.optional.MysqlXAException: XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected
2019-10-16T06:34:21.288369694Z at com.mysql.jdbc.jdbc2.optional.MysqlXAConnection.mapXAExceptionFromSQLException(
2019-10-16T06:34:21.288374194Z at com.mysql.jdbc.jdbc2.optional.MysqlXAConnection.dispatchCommand(
2019-10-16T06:34:21.288378394Z at com.mysql.jdbc.jdbc2.optional.MysqlXAConnection.end(
2019-10-16T06:34:21.288382594Z at
2019-10-16T06:34:21.288386894Z at
2019-10-16T06:34:21.288390694Z at


Submitted by antoine.mottier on Wed, 10/16/2019 - 11:08

Can you let me know which version of MySQL JDBC Driver you are using?

Also can you share the number of row currently stored in the contract_data table?


Submitted by sujith.g_1364085 on Tue, 10/22/2019 - 06:26

Hi @antoine.mottier,
Thanks for your reply. Please find the required details below.
* No. of rows in contract_data table is 406
* MySQL JDBC Driver mysql-connector-java-5.1.26.jar

No answers yet.