Bug 711502 - Resources using the ResourceContext.createAvailabilityCollectorRunnable unable to start up when loaded from the disk
Summary: Resources using the ResourceContext.createAvailabilityCollectorRunnable unabl...
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: Lukas Krejci
QA Contact: Mike Foley
Depends On:
Blocks: jon3 rhq42
TreeView+ depends on / blocked
Reported: 2011-06-07 16:30 UTC by Lukas Krejci
Modified: 2018-11-14 13:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Lukas Krejci 2011-06-07 16:30:19 UTC
Description of problem:

Resources using ResourceContext.createAvailablityCollectorRunnable() to enable async availability collections are unable to do so when they are being restored
from the persistent storage during plugin container start up.

The AvailabilityCollectorThreadPool is only initialized *after* the resources are loaded from disk and activated, and therefore the above call will always end up with an exception (because the thread pool is null by the time the resources are started up).

Version-Release number of selected component (if applicable):
RHQ 3.0.0 and up

How reproducible:

Steps to Reproduce:
1. Inventory JBoss AS 5 resource, set the "Availability Check Period" property to a valid value.
2. restart the agent

Actual results:
The JBoss AS 5 resource is forever down

Expected results:
the resource is up and async availability collection is working

Additional info:

in case of JBoss AS 5 resource, the workaround is unset the above mentioned property in its connection settings. This will prevent the resource from trying the async avail collection and fall back to detecting it synchronously.

Comment 2 Lukas Krejci 2011-10-12 11:52:30 UTC
commit 10e42d6f44b3ddb36f42f81079ae5fddbad58cdc
Author: Lukas Krejci <lkrejci@redhat.com>
Date:   Wed Oct 12 12:25:22 2011 +0200

    BZ 711502 - make sure the availability collectors are initialized before any resource component is started.

Comment 3 Mike Foley 2011-10-13 18:32:18 UTC
observed BZ 744803 while verifying this.  

this is verified by following the reproduction steps

Comment 4 Mike Foley 2012-02-07 19:30:33 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE

Comment 5 Mike Foley 2012-02-07 19:30:43 UTC

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