[ 
https://issues.apache.org/jira/browse/OFBIZ-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sharan Foga updated OFBIZ-5215:
-------------------------------
    Sprint: Bug Crush Event - 21/2/2015

> GenericDelegator rollback can fail when optimistic locking is enabled
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-5215
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5215
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Joe Eckard
>
> If an entity uses optimistic (timestamp) locking, then when rollback() 
> attempts to revert an UPDATE test operation an EntityLockedException is 
> thrown (because it calls store() on the original value which has old 
> timestamps).
> Proposed fix: disable the locking with modelEntity.setDoLock(false)? I'm not 
> sure if we need to re-enable it afterwards of if it is ok at this point to 
> leave it disabled.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to