diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-10-04 10:44:24 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-10-04 10:47:08 +0200 |
| commit | 25cc35b0e4942e990c01ac6224720e8fe84fd9ae (patch) | |
| tree | 12cd345922388df70ac4498570659d6c6990a7e5 /opendc-integration-jpa/src/main/resources/jpa/schema.xml | |
| parent | 2c26e9c91c945af065770c323e8b80a9f5104379 (diff) | |
bug(#9): Fix interference between experiments
This change fixes the interference of multiple experiments running at
the same time due to some thread unsafe behaviour in the
JpaExperimentManager class.
The code has now been restructured to solve the issue and fix the thread
unsafe behaviour.
Closes #9.
Diffstat (limited to 'opendc-integration-jpa/src/main/resources/jpa/schema.xml')
| -rw-r--r-- | opendc-integration-jpa/src/main/resources/jpa/schema.xml | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/opendc-integration-jpa/src/main/resources/jpa/schema.xml b/opendc-integration-jpa/src/main/resources/jpa/schema.xml index a14fb96d..bd6ea7a1 100644 --- a/opendc-integration-jpa/src/main/resources/jpa/schema.xml +++ b/opendc-integration-jpa/src/main/resources/jpa/schema.xml @@ -85,7 +85,7 @@ </attributes> </entity> - <entity class="Trace" access="FIELD" name="traces"> + <entity class="Trace" access="FIELD" name="traces" cacheable="false"> <attributes> <id name="id" /> <basic name="name"> @@ -97,17 +97,17 @@ </attributes> </entity> - <entity class="Job" access="FIELD" name="jobs"> + <entity class="Job" access="FIELD" name="jobs" cacheable="false"> <attributes> <id name="id" /> - <one-to-many name="tasks" target-entity="nl.atlarge.opendc.integration.jpa.schema.Task"> + <one-to-many name="tasks" target-entity="Task"> <join-column name="job_id" /> </one-to-many> <transient name="owner" /> </attributes> </entity> - <entity class="Task" access="FIELD" name="tasks"> + <entity class="Task" access="FIELD" name="tasks" cacheable="false"> <convert converter="nl.atlarge.opendc.integration.jpa.converter.ParallelizableConverter" attribute-name="parallelizable" /> <attributes> <id name="id" /> @@ -121,13 +121,12 @@ <column name="parallelizability" column-definition="text" /> </basic> - <one-to-one name="dependency" target-entity="nl.atlarge.opendc.integration.jpa.schema.Task"> + <one-to-one name="dependency" target-entity="Task"> <join-column name="task_dependency_id" /> </one-to-one> - <transient name="_dependencies" /> - <transient name="_remaining" /> - <transient name="accepted" /> - <transient name="started" /> + <transient name="dependencies" /> + <transient name="state" /> + <transient name="remaining" /> <transient name="finished" /> </attributes> </entity> |
