Add locking module: optimistic vs pessimistic locking on Hibernate 7.4.14.Final
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YPgGH6aMbSLANL3E2HHmS6
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
opposite lock order (A: 1 then 2, B: 2 then 1)
|
||||
transactions that failed: 1
|
||||
jakarta.persistence.PessimisticLockException
|
||||
caused by org.hibernate.exception.LockAcquisitionException
|
||||
caused by org.h2.jdbc.JdbcSQLTransactionRollbackException
|
||||
H2 message: Deadlock detected. The current transaction was rolled back. Details: "ACCOUNT"; SQL statement:
|
||||
caused by org.h2.mvstore.MVStoreException
|
||||
|
||||
same lock order for both (always the lower id first)
|
||||
transactions that failed: 0
|
||||
Reference in New Issue
Block a user