Bug 872690 - InventoryContext.requestChildResourcesDiscovery blocks forever in ResourceComponent.start()
InventoryContext.requestChildResourcesDiscovery blocks forever in ResourceCom...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Plugin Container (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
Depends On:
  Show dependency treegraph
Reported: 2012-11-02 14:18 EDT by Elias Ross
Modified: 2012-11-02 14:18 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
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)

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