Bug 867184

Summary: Need a way to remove existing process instances from the database
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jason Shepherd <jshepherd>
Component: riftsawAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.0 GACC: soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Jason Shepherd 2012-10-17 02:10:33 UTC
Description of problem:
We need a way to remove existing process instances from the database. We can use the 'cleanup' tag prevent creating new instances, but if we have not been using that, our database will grow to a large size. We need a way to maintain the size of the database, by removing old instances.

We are most concerned with the data in the BPEL_XML_DATA table.

Version-Release number of selected component (if applicable):

Riftsaw 2.3.1.Final

How reproducible:

Use the BluePrint3 tutorial shipped with the 2.3.1.Final source code. Send a 'throw_inv_fault' message to the service, and observe that data is persisted in the BPEL_XML_DATA table.

  
Actual results:

For each request, more data is persisted in the BPEL_XML_DATA table.


Expected results:

A way to delete this data, without breaking any other functionality.

Additional info:

We are aware a 'cleanup' tag is available, and that we should catch and deal with a fault like the 'throw_po_fault' path does, in order to prevent data from being stored in this table.

See BZ 854419
https://bugzilla.redhat.com/show_bug.cgi?id=854419

Comment 1 JBoss JIRA Server 2012-10-22 08:31:01 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

I've attached a workaround for MSSQL. (MSSQL store procedure).

Comment 2 JBoss JIRA Server 2012-10-22 08:32:21 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

Note that, in this workaround script, I only remove the old instances that are completed OK (thats the 30 for, means complete_state)

Comment 3 JBoss JIRA Server 2012-10-28 22:20:39 UTC
Jason Shepherd <jshepherd> made a comment on jira RIFTSAW-515

The script worked as expected.

Comment 4 JBoss JIRA Server 2013-01-29 08:09:12 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

I'll make this service available as RESTFul service for this task.

Comment 5 JBoss JIRA Server 2013-01-29 08:12:58 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

Created RIFTSAW-526 for adding the page in BPEL console to use this service.

Comment 6 JBoss JIRA Server 2013-02-08 01:19:32 UTC
Jeff Yu <cyu> updated the status of jira RIFTSAW-515 to Resolved

Comment 7 JBoss JIRA Server 2013-02-08 01:19:32 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

For the document, can be found at: https://community.jboss.org/wiki/ProcessInstanceCleanup

Comment 8 JBoss JIRA Server 2013-03-07 10:57:25 UTC
Jeff Yu <cyu> updated the status of jira RIFTSAW-515 to Closed

Comment 9 JBoss JIRA Server 2013-03-07 10:57:25 UTC
Jeff Yu <cyu> made a comment on jira RIFTSAW-515

closed issues for M5.