Bug 872690
| Summary: | InventoryContext.requestChildResourcesDiscovery blocks forever in ResourceComponent.start() | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Elias Ross <genman> |
| Component: | Plugin Container | Assignee: | Nobody <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | hrupp |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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: | --- | Target Upstream Version: | |
| Embargoed: | |||
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)