We have recently setup XA Transactions as per the documentation.
However, app team is facing the issues as below
Performance Test 1: XXXX Internal users [get XXXX token API ] – 3 concurrent users with three different accounts for 10 minutes duration. [04:46 - 04:57 AM EST] – No Errors
Performance Test 2: XXXX Federated users [get XXXX token API ] - 3 concurrent users with three different accounts for 5 minutes duration. [05:27 - 05:33 AM EST] – No Errors
Performance Test 3: XXXX Federated users [get XXXX token API ] - 3 concurrent users with 20 different accounts. [05:47 - 05:49:36 AM EST] – Errors were observed
and errors says as below
{"error":"org.hibernate.exception.LockAcquisitionException: could not execute query"}
{"error":": Unable to acquire lock after 10 seconds for key f:6038d4995878:ptuserfafn375759570511 and requestor GlobalTx:local:754. Lock is held by GlobalTx:local:732"}
I checked DPA Monitoring Tool and found blockings and deadlocks between 05:47 - 05:49:36 AM EST. Victim and Survivor are running the same SQL, from same machine except different Txn/Owner ID.
Checked and validated System/SQL Server error logs, with nothing unusual.
Any thoughts please?