[hibernate-issues] [JIRA] (HHH-14043) Two concurrent element shifts in a list damage database integrity.

Christian Beikov (JIRA) jira at hibernate.atlassian.net
Wed Jun 17 14:27:44 EDT 2020


Christian Beikov ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A0222998d-a0c8-4789-91ec-6a92d10dfb9a ) *commented* on HHH-14043 ( https://hibernate.atlassian.net/browse/HHH-14043?atlOrigin=eyJpIjoiZDIzMDNiNzYzZjYwNGE1OTlhZWU0ODNiYWQwMmM0Y2EiLCJwIjoiaiJ9 )

Re: Two concurrent element shifts in a list damage database integrity. ( https://hibernate.atlassian.net/browse/HHH-14043?atlOrigin=eyJpIjoiZDIzMDNiNzYzZjYwNGE1OTlhZWU0ODNiYWQwMmM0Y2EiLCJwIjoiaiJ9 )

AFAICS this is expected. If you want concurrency protection you have two options. Use optimistic locking or pessimistic locking.

( https://hibernate.atlassian.net/browse/HHH-14043#add-comment?atlOrigin=eyJpIjoiZDIzMDNiNzYzZjYwNGE1OTlhZWU0ODNiYWQwMmM0Y2EiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14043#add-comment?atlOrigin=eyJpIjoiZDIzMDNiNzYzZjYwNGE1OTlhZWU0ODNiYWQwMmM0Y2EiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100129- sha1:3ed9692 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200617/67af641c/attachment.html 


More information about the hibernate-issues mailing list