Community
Participate
Working Groups
Created attachment 185870 [details] Stacktrace When one imports a repository and then commits new data to it, an IllegalStateException gets thrown (for MEMStore; for DBStore the exception is a PK violation). See attached stacktrace & testcase.
Created attachment 185871 [details] Testcase (as a patch) Extended BackupTest.testImport() to demonstrate the problem.
Problem seems to be that the first object that gets committed after the import, receives OID1. But the commit logic finds an existing object for that ID, of course.
... which in turn is because the import logic uses MEMStore.addRevision(InternalCDORevision revision, boolean raw) to add revisions, which doesn't raise the lastObjectID. Attaching a patch shortly.
Created attachment 185875 [details] Patch v1 (including testcase)
Good catch. I guess the DBStore is considered in one of the other import bugzillas...
Committed to HEAD
Available in R20110608-1407