You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Joe Eckard (JIRA)" <ji...@apache.org> on 2013/06/07 15:42:20 UTC
[jira] [Created] (OFBIZ-5215) GenericDelegator rollback can fail
when optimistic locking is enabled
Joe Eckard created OFBIZ-5215:
---------------------------------
Summary: 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: SVN 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira