This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
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
unspecified Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  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:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


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
        context.getInventoryContext().requestChildResourcesDiscovery();
    }
}

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.