Bug 1126422
Summary: | Database schema compatibility broken: BPMS 6.0 -> 6.1 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Jiri Svitak <jsvitak> | ||||||
Component: | jBPM Core | Assignee: | Mauricio Salatino <msalatin> | ||||||
Status: | CLOSED WORKSFORME | QA Contact: | Jiri Svitak <jsvitak> | ||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 6.1.0 | CC: | kverlaen, mbaluch, mrietvel, msalatin, mswiders | ||||||
Target Milestone: | --- | Keywords: | TestBlocker | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-08-25 15:10:30 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Jiri Svitak
2014-08-04 12:09:48 UTC
Hi guys, did you run the migration script for the db schemas? -> https://github.com/droolsjbpm/jbpm/tree/master/jbpm-installer/db This doesn't seems to be related with the tasks schema changes. 1.) This happens on *empty* PostgreSQL schema. jBPM was *always* able to generate its schema. Migration script can have sense only for existing schemas. 2.) QE was not informed about upcoming changes. Why is the schema compatibility broken anyway? Have you tried the steps I mention? What should be done to get it working? Wrt. dialect - as I said the code is the same for both 6.0 and 6.1, that means including hibernate dialect. My code was working with all 6.0 builds and now it stopped working. If you tried the steps I told you, they were really simple, you would not need to ask to check the dialect. You cannot separate my sentence from the context. In case of Oracle database, the schema was prepared by scripts. In case of PostgreSQL, the database was empty, so your suggestion for using migration script does not make sense in the case of PostgreSQL and the problem persists. We need to find out why the existing code stopped working. The easiest way is to try the steps I provided, they are simple and straightforward. If we will find something, what needs to updated - persistence.xml, additional SQL commands, application code etc. we need to properly document it, so the customers moving from 6.0 to 6.1 will have clear guideline what to do. Or it is a product bug which needs to be fixed. problem is actually caused by H2Dialect being used as there are multiple persistence.xml files found. The one that causes issues comes from jbpm-test. jbpm-test should not be used in such scenarios as it's intended to provide quick start in standalone operations/tests. See attached patch that solves issues for the 6.1 performance framework. Created attachment 925151 [details]
performance framework patch
Is this one solved now? because it is still marked as urgent and it is not modified yet. Should I move it to modified? Regards Mauricio - Jiri will verify the fix from Maciej and we will close the issue (most probably as not a bug). @Maciej - many thanks for helping out with this issue! Thank you Maciej for the patch file! I can confirm that after apply it works correctly. Closing the bug, because I have been able to get it to working state. However these changes required for 6.0 -> 6.1 migration need to be documented. |