Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] SVN main commit: bug#304738 - option to avoid possible database deadlock in updates

SVN main commit: bug#304738 - option to avoid possible database deadlock in updates

 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=304738

 

It is currently possible for uow updates for a class to occur in a

non-consistent order.  This can cause a possible deadlock on the database if

multiple threads are updating the same set of objects at the same time.

 

This fix adds an option to uow to allow updates within a class to be ordered by pk.

 

Code review: Andrei (pending)

 

Changes:

- Added database update deadlock test to client-server test suite

- Added persistence unit property, "eclipselink.order-updates" to allow updates to be ordered

- Made ObjectChangeSet and CacheId Comparable to allow ordering by id

- Added check in CommitManager to sort change sets before updating

- Fixed aggregate check for batch reading in ForeignReferenceMapping include aggregate-collection

 


Back to the top