Andrzej Wójcik (Tigase) opened 4 years ago
|
|
I've reviewed the code of a stored procedure and did not find anything causing directly this issue. On MySQL in RDS I've not found any details about this issue. The only part of the stored procedure which can be problematic is that I'm deleting in 3 transactions one after the other and they are working on the same tables. With concurrent execution of SP from multiple cluster nodes that could lead to the issue (but we should not block the same records), so I've moved that to the single transaction and updated SP on the tigase.im installation. We will need to wait to confirm if the fix is working. |
|
@andrzej.wojcik it just happened again:
|
|
I've tried to get info from MySQL about a deadlock but AWS RDS restarted cluster nodes to apply patches and there is no longer any info about a deadlock. Will need to wait for another occurrance |
|
I've grabbed details of the latest deadlock:
and it looks like deleting items from other tables while query uses To fix that I've added exclusive lock acquiring at Fix applied also directly at tigase.im/sure.im/xmpp.cloud installation. |
|
seems to be fixed. |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0
|
Spent time |
4h
|
-
tigase-private/systems-maintenance/tigase-im-service#90 You are not authorized to access this issue
There is a deadlock caused by concurrent execution of this method on a different cluster nodes, but there is no obvious reason of this deadlock.