Hy everyone !
I'm currently using CDOPushTransactions, which are great !
My use case seems to be the typical use case for Push Transactions :
I open a CDOPushTransaction, and commit changes in an hidden file. When the user decides to, I push the changes on the repository.
It works like a charm, but I encountered a really annoying issue :
1. make several modifications (let us say modification of several attributes) on a same CDOObject
2. commit the changes using my Push Transaction without pushing them
3. close the push transaction
4. open a new Push transaction so that changes made in 1 are loaded
I get the following error (MyElement being the EClass of my modified element) :
java.lang.IllegalStateException: Duplicate ID: MyElement@OID14
When trying to commit anyway, I get the following error (which seems logical):
org.eclipse.emf.cdo.util.CommitException: This transaction has conflicts
Considering the fact that any other modifications (element creation and deletion, references or attributes changes...) are correctly persisted and loaded, I'm thinking that it may be related to the CDO core and not my code (which looks like the example given in this bugzilla record https://bugs.eclipse.org/bugs/show_bug.cgi?id=297967).
Does this ring a bell to anyone ?
BTW : is there a clean way to avoid getting a warning ("Using [FILEPATH] for push transaction ...") in the Error log each time a Push transaction is created ?