Bug 778188 (SOA-693) - Update '8.2. Database upgrades' section of JBPM Users Guide
Summary: Update '8.2. Database upgrades' section of JBPM Users Guide
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-693
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Documentation
Version: 4.2 CP02
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP01
Assignee: Dana Mison
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks: 778708
TreeView+ depends on / blocked
 
Reported: 2008-08-20 09:38 UTC by Taro Yasuma
Modified: 2009-03-12 11:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-12 11:50:59 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778738 0 high CLOSED The SOA documentation contains no directions or advice for upgrading 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPM-1689 0 None None None Never
Red Hat Issue Tracker SOA-693 0 None None None Never

Internal Links: 778738

Description Taro Yasuma 2008-08-20 09:38:11 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Date of First Response: 2008-08-20 15:30:39
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/210809
project_key: SOA

'8.2. Database upgrades' section of JBPM Users Guide[1] is out-dated because it explains about using upgrade.scripts.
But when you upgrade from jBPM v3.1.x to v3.2.x, you need to follow a section about upgrading database schema in JBPM_3.2.x_x.zip/jbpm-jpdl-3.2.x/release.notes.html instead of [1].

[1] http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.2.2/html-single/JBPM_Users_Guide/index.html#databaseupgrades

Comment 1 Mark Little 2008-08-20 19:30:39 UTC
Please see the SOA-P productization notes and create a linked issue in the jBPM JIRA space.

Comment 2 Taro Yasuma 2008-08-21 01:20:21 UTC
Link: Added: This issue related JBPM-1689


Comment 3 Taro Yasuma 2008-08-21 01:21:51 UTC
Raised another JIRA in the jBPM project and crossed link it.

Comment 4 Mark Little 2008-11-18 14:42:06 UTC
Affects: Added: [Documentation (Ref Guide, User Guide, etc.)]


Comment 5 Dana Mison 2008-11-20 00:46:49 UTC
To clarify task:
the SOA JBPM doc only includes a 3.1 -> 3.2 upgrade script & needs to also include the 3.1 -> 3.2 script (and notes) as well ?

Comment 6 Taro Yasuma 2008-11-20 00:52:36 UTC
The whole section of '8.2. Database upgrades' is out-dated and it needs to be replaced by the one in the notes.

Comment 7 Dana Mison 2009-01-29 06:09:27 UTC
I need a bit more guidance here.

The file release.notes.html basically just has 2 pages of SQL for the schema update.  Users have to copy/paste the commands into a SQL client to upgrade?

JBPM-1689 has this set to resolved in 3.3... which just replaces this section with:
For database upgrades, please refer to the release.notes.html in the root of your installation directory.

Comment 8 Taro Yasuma 2009-02-02 00:52:54 UTC
> The file release.notes.html basically just has 2 pages of SQL for the schema update. Users have to copy/paste the commands into a SQL client to upgrade?

Yes.

> For database upgrades, please refer to the release.notes.html in the root of your installation directory.

I think this sentence is enough for this fix but you should add the installation directory is <soa-home>/jbpm-jpdl in SOA-P.


Comment 9 Dana Mison 2009-02-16 09:14:27 UTC
Link: Added: This issue is a dependency of SOA-1172


Comment 10 Dana Mison 2009-02-24 04:35:19 UTC
The new jBPM docs direct the user to the jBPM release notes for db upgrade instructions, but the jBPM 3.3.1 release notes in CR2 (jbpm-jpdl/release.notes.html) no longer include database upgrade instructions.  

Unless someone has a better idea, I'm going to copy the migration instructions for 3.1.x -> 3.2.x and 3.2.3 -> 3.3.0.GA from the release.notes.html from the CR1 package into the SOA jBPM docs.  It will be quick and dirty but it will be there.

Comment 11 Dana Mison 2009-02-27 05:12:41 UTC
SOA jBPM guide has been updated as per my previous comment

Comment 12 Jiri Pechanec 2009-03-06 07:08:08 UTC
There is no 3.3.0 and 3.2.3 in SOA Platform. '7.2.1. Changes from 3.2.3 to 3.3.0.GA 'should be renamed to 'Changes from 3.2.2 to 3.2.5'

Comment 13 Jiri Pechanec 2009-03-06 07:10:28 UTC
Moreover there is an automatic mechanism in jbpm-service.xml to automatically upgrade db if CP1 is run on GA created db 
   <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer"
       name="jboss.esb:service=JBPMDatabaseUpgrader">
      <attribute name="Datasource">java:/JbpmDS</attribute>
      <attribute name="ExistsSql">select PARENTLOCKMODE_ from JBPM_NODE</attribute>
      <attribute name="SqlFiles">
      jbpm-sql/jbpm.jpdl.hsqldb.update322.sql
      </attribute>
      <depends>jboss.esb:service=JBPMDatabaseInitializer</depends>
      <attribute name="UseEOL">true</attribute>
    </mbean>


Comment 14 Dana Mison 2009-03-06 07:27:06 UTC
So... in this section we can just tell them that it occurs automatically, and point out where the update scripts live  in-case they want to check them (if they have customized their database etc).

Comment 15 Len DiMaggio 2009-03-09 01:34:58 UTC
Link: Added: This issue related SOA-1196


Comment 16 Dana Mison 2009-03-10 02:05:44 UTC
Content of section updated as:

The jBPM ESB service that is provided in the JBoss Enterprise SOA Platform handles database
upgrades automatically from any earlier version of JBoss Enterprise SOA Platform.

If you have made any changes to the jBPM database schema or wish to use a jBPM database
which was not created by the JBoss Enterprise SOA Platform, then the upgrade process cannot
be guaranteed to work. You should contact Red Hat JBoss support for advice for your specific
circumstances.


Comment 17 Jiri Pechanec 2009-03-12 11:50:59 UTC
Verified in CR4


Note You need to log in before you can comment on or make changes to this bug.