Bug 689993

Summary: [RFE] JBoss AS4 and AS5 plug-in needs to support configurable operation time-outs
Product: [Other] RHQ Project Reporter: Larry O'Leary <loleary>
Component: PluginsAssignee: Simeon Pinder <spinder>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0.0CC: hrupp, mfoley, spinder
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 689992 Environment:
JON 2.4.1 JBoss AS 5 plug-in
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 689992    

Description Larry O'Leary 2011-03-22 22:58:04 UTC
The start, stop, and restart operations exposed by the JBoss AS 4 and 5 plug-in have a hard-coded time-out value. In some environments, an AS5 instance may take several minutes to fully start depending on what is being deployed and how many CPUs are available. In is not uncommon for an AS5 instance to take more then 5 minutes to fully start, especially within a development environment. This poses a problem for the start, stop, and restart operations if they are used to bring up or down the AS instance.

This request is to move the STOP_WAIT_MAX and START_WAIT_MAX hard-coded values to the plug-in configuration so that the values can be overridden by the user if necessary.

This would apply to both the JBoss AS4 and AS5 plug-in. These values are currently defined in:

org.rhq.plugins.jbossas.JBossASServerOperationsDelegate
org.rhq.plugins.jbossas5.ApplicationServerOperationsDelegate


As:
    private static final long STOP_WAIT_MAX = 1000L * 150; // 2.5 minutes
    private static final long START_WAIT_MAX = 1000L * 300; // 5 minutes

Comment 1 Simeon Pinder 2011-03-31 13:13:14 UTC
Applied fix for AS5,AS4 and Tomcat plugins to master.
commit hash: 61aaf4428de45f616e720a5f05a00ad0968b0ba8
commit hash: 2f689feaccf45c2ffcf58ee136e3e59a4fbd2999

These plugins now allow configuration of server start/stop MAX_TIME values in minutes to override the default if set.

Comment 2 Mike Foley 2011-05-02 17:09:36 UTC
verifying configurable timeouts on RHQ 4.0 RC #2

Comment 3 Corey Welton 2011-05-24 01:17:12 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:17:13 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 5 Corey Welton 2011-05-24 01:17:13 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 6 Corey Welton 2011-05-24 01:17:15 UTC
Bookkeeping - closing bug - fixed in recent release.