| Summary: | Raw replication failure is not cleaned up properly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Erwin Betschart <erwin> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Erwin Betschart
Created attachment 184472 [details] Proposed patch The patch removes all already created new mapping tables in the db in case of an error. That is the next raw replication will not fail with a "Table already exists" error. In rawImportPackageUnits a new db connection is created due to: In H2 the CREATE TABLE statement commits the transaction (see http://www.h2database.com/html/grammar.html#create_table) therefore the changes done before creating the table cannot be undone by calling connection.rollback(). This patch was only tested with an H2 database! Good catch, Erwin. Please confirm that: 1) The number of lines that you changed is smaller than 250. 2) You are the only author of these changed lines. 3) You apply the EPL to these changed lines. Committed to HEAD I confirm that: 1) The number of lines that you changed is smaller than 250. 2) You are the only author of these changed lines. 3) You apply the EPL to these changed lines. Available in R20110608-1407 |