Description
In 10.2, an error message for a deadlock would look like this:
ERROR 40001: A lock could not be obtained due to a deadlock, cycle of locks and waiters is:
Lock : ROW, T, (1,8)
Waiting XID :
, APP, select * from t where id = 2
Granted XID :
Lock : ROW, T, (1,7)
Waiting XID :
, APP, select * from t where id = 1
Granted XID :
. The selected victim is XID : 235.
On trunk, the same deadlock would be reported as
java.sql.SQLException: A lock could not be obtained due to a deadlock, cycle of locks and waiters is:
Lock : ROW, T, (1,8)
Waiting XID :
Granted XID :
Lock : ROW, T, (1,7)
Waiting XID :
Granted XID :
. The selected victim is XID : org.apache.derby.impl.services.locks.LockSpace@94884d.
That is, the transaction id and the failing statement are not shown.
Attachments
Attachments
Issue Links
- relates to
-
DERBY-2829 Write a test which verifies that timeout errors contain information about the locks involved
-
- Closed
-