Bug 1088264
Summary: | AvailabilityExecutor stops calling getAvailability() on ResourceComponent after it previously failed with exception | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Libor Zoubek <lzoubek> |
Component: | Agent | Assignee: | Libor Zoubek <lzoubek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.10 | CC: | hrupp, jshaughn, theute |
Target Milestone: | --- | ||
Target Release: | RHQ 4.11 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-21 10:14:00 UTC | 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: |
Description
Libor Zoubek
2014-04-16 10:40:27 UTC
in master commit 937cb29ee5450da0bcf04d8e9952310de400e90b Author: Libor Zoubek <lzoubek> Date: Thu Apr 17 11:47:43 2014 +0200 [BZ 1088264] AvailabilityExecutor stops calling getAvailability() on ResourceComponent after it previously failed with exception The issue was in handling exception comming from future. When availability check failed with exception we cought it, next run, just by calling future.get() raises the very same exception. We forgot to mark future to be rescheduled next time = setting it to null. This commit also makes exception message more verbose so we know more what happened in plugin I'm not sure, we may have done this on purpose originally, to prevent repeated failures. The component's getAvailability() method should not, in general, throw exceptions. It should return DOWN if it can't connect due to poor plugin configuration. So, I'd say the use case above indicates a bad implementation of getAvailability(). Having said that, this change is probably acceptable. It's more just an implementation decision and perhaps people will prefer it this way. Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out. If you find an issue with those, please open a new BZ, linking to the old one. |