Bug 534215 (RHQ-1032) - Documentation: installer cannot blindly purge JMS table, but we should be able to clear it
Summary: Documentation: installer cannot blindly purge JMS table, but we should be abl...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: RHQ-1032
Product: RHQ Project
Classification: Other
Component: Documentation
Version: 1.1
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Deon Ballard
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: 573732
TreeView+ depends on / blocked
 
Reported: 2008-10-27 15:38 UTC by John Mazzitelli
Modified: 2010-05-17 22:28 UTC (History)
1 user (show)

Fixed In Version: 1.4
Clone Of:
Environment:
Last Closed: 2010-05-17 22:28:32 UTC
Embargoed:


Attachments (Terms of Use)
rhq-server-log4j.log (16.85 KB, text/x-log)
2008-11-04 01:20 UTC, John Mazzitelli
no flags Details

Description John Mazzitelli 2008-10-27 15:38:00 UTC
(11:27:32 AM) mazz: I just noticed something - installer deletes all JMS messages found in the JMS tables (ConfigurationBean line 521 calls serverInfo.cleanJmsTables).
(11:27:50 AM) mazz: what happens if I am installing a new server in an existing cloud and that cloud's other servers are up and running?
(11:28:02 AM) mazz: and we are currently processing JMS messages over there?
(11:29:46 AM) joseph42: hmm...that's not good
(11:30:16 AM) joseph42: is there a way to override that
(11:30:30 AM) joseph42: for instances where we're just adding another server?

I think we should get rid of this.  Now that we fixed our JMS problems before (the OOB cache bug), I don't think we need to blow away the JMS table anymore.  If we think we'll still need this, then we must make this optional - with a default being OFF.  Otherwise, the user might accidentally destroy our JMS messages being sent by other servers in the cloud.

Comment 1 John Mazzitelli 2008-11-04 01:20:41 UTC
Even though we shouldn't blindly purge the JMS_MESSAGES table, we should be able to have a way to truncate that table somehow.

I just had a case where the server got in a bad state.  There ended up 72,000 rows in JMS_MESSAGES.  The server fails to properly start with this many messages persisted. Attached is the rhq server log that shows the kinds of messages you get at server startup when this happens.

Comment 2 John Mazzitelli 2008-11-04 01:22:13 UTC
Because JMS currently uses XA, this is going to be related to RHQ-1017 - if we are to clear the tx object store, we should also purge the JMS_MESSAGES table (and possibly the JMS_TRANSACTIONS table)

Comment 3 John Mazzitelli 2008-11-04 01:23:08 UTC
This may be related to the "remove XA from JMS configuration" JIRA - RHQ-938. I'm linking this issue just so we don't lose this possible relationship.

Comment 4 John Mazzitelli 2008-11-04 01:23:26 UTC
making this a blocker for 1.2 since it is related to other blocker issues

Comment 5 Corey Welton 2009-08-25 19:52:57 UTC
priority to major.

Comment 6 Charles Crouch 2009-08-25 19:53:03 UTC
Need to document either putting the servers in MM before upgrading/adding or stating that inflight alerts could be lost during upgrade/add of a server

Comment 7 John Mazzitelli 2009-09-01 16:18:08 UTC
BTW: for the record, the installer never touches the JMS tables anymore... this method still exists for future use, but its never called right now.

org.rhq.enterprise.installer.ServerInformation.cleanJmsTables(Properties)

Comment 8 Charles Crouch 2009-09-01 16:44:16 UTC
Ok, pushing this to the next release since we aren't actually purging from the JMS tables

Comment 9 Red Hat Bugzilla 2009-11-10 20:22:17 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1032
Imported an attachment (id=368483)
This bug is related to RHQ-1017
This bug is related to RHQ-938


Comment 10 Deon Ballard 2010-03-15 17:12:42 UTC
Stealing this.

Comment 11 Deon Ballard 2010-03-15 17:17:08 UTC
Blocking install guide tracker.

Comment 12 Charles Crouch 2010-05-17 21:49:51 UTC
(4:44:31 PM) ccrouch: mazz: can this be closed https://bugzilla.redhat.com/show_bug.cgi?id=534215 ? since we're not doing any JMS purging any longer?

Comment 13 John Mazzitelli 2010-05-17 22:11:03 UTC
this can be closed as per my earlier comments about the installer not purging the jms tables anymore


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