Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Attempt by Transaction[2:8] to modify historical revision
[CDO] Attempt by Transaction[2:8] to modify historical revision [message #1753853] Fri, 10 February 2017 17:31 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 840
Registered: July 2009
Senior Member
This is the situation:
Two different transactions concurrently add new EObjects (each one) to the same Resource.

Exception:

org.eclipse.emf.cdo.util.CommitConflictException: Attempt by Transaction[2:8] to modify historical revision: CDORevisionDelta[CDOResource@OID9:0v1 --> [CDOFeatureDelta[contents, LIST, originSize=0, list=[CDOFeatureDelta[contents, ADD, value=oid1, index=0]]]]]
	at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactionStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:77)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commitSynced(CDOTransactionImpl.java:1610)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1573)
	at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1540)


This even occurs if I add CDOMergingConflictResolver to the transaction's conflict resolvers.
Should CDOMergingConflictResolver handle this case? If not, what do I have to provide to handle this "simple" conflict?

Thanks.
Re: [CDO] Attempt by Transaction[2:8] to modify historical revision [message #1753961 is a reply to message #1753853] Mon, 13 February 2017 12:40 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6376
Registered: July 2009
Senior Member
Conflict resolvers reduce the potential of conflicts a lot, but they can't eliminate the potential completely. Only explicit locks can do that.
Previous Topic:Merging metamodels
Next Topic:[XCORE] Warning "The feature is bidirectional reference."
Goto Forum:
  


Current Time: Thu Apr 19 15:56:49 GMT 2018

Powered by FUDForum. Page generated in 0.01508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software