1. 07 Nov, 2011 2 commits
  2. 10 Oct, 2011 3 commits
  3. 09 Oct, 2011 3 commits
  4. 04 Oct, 2011 1 commit
    • Marvin S. Addison's avatar
      CAS-1051 · 2234cfe0
      Marvin S. Addison authored
      Leverage JPA2 pessimistic locking to avoid deadlocks caused by lock upgrade
      (escalation) cases like the following:
      
       1. Tx1 obtains SHARE lock on TGT row P prior to creation of child ST C1
       2. Tx2 obtains SHARE lock on TGT row P prior to creation of child ST C2
       3. Tx2 attempts to upgrade SHARE lock to EXCLUSIVE in order to update P
       4. Tx1 attempts to upgrade SHARE lock to EXCLUSIVE in order to update P
      
      Since Tx2 and Tx1 depend on each other in a way that will never resolve
      naturally, the database reports a deadlock.
      
      By querying for TGTs with lock type PESSIMISTIC, an exclusive lock is
      obtained for P _prior_ to step 1 and Tx2 blocks on Tx1 at step 2 in a way
      that will resolve naturally.
      2234cfe0
  5. 30 Sep, 2011 6 commits
  6. 29 Sep, 2011 2 commits
    • Marvin S. Addison's avatar
      CAS-930 · 5d0ed030
      Marvin S. Addison authored
      JpaLockingStrategy feature completed with verifying test cases.
      Concurrent tests only execute upon request when cas.jpa.concurrent system
      property is set to true and do _not_ work against HSQL due to lack of
      complete support for pessimistic locking (at least when using Hibernate).
      5d0ed030
    • Marvin S. Addison's avatar
      CAS-930 · cb53d83c
      Marvin S. Addison authored
      Initial support for JPA 2.0 locking strategy
      cb53d83c
  7. 22 Sep, 2011 2 commits
  8. 21 Sep, 2011 12 commits
  9. 16 Sep, 2011 1 commit
  10. 15 Sep, 2011 1 commit
  11. 14 Sep, 2011 4 commits
  12. 12 Sep, 2011 3 commits