Bug 872690

Summary: InventoryContext.requestChildResourcesDiscovery blocks forever in ResourceComponent.start()
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: Plugin ContainerAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
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: ---

Description Elias Ross 2012-11-02 14:18:29 EDT
The method InventoryContext.requestChildResourcesDiscovery() will hang a component's start method indefinitely, e..g

public class MonitorComponent
    implements ResourceComponent
    public void start(ResourceContext context) {
        // notice something during init

This method should be changed to either throw an exception or not block. Or at least document its use.

Also, InventoryContext could use some class-level JavaDoc.

     * @return discovered child resources
    public void requestChildResourcesDiscovery();

^^ does not return anything (would be nice if it did)