Bug 1444899
| Summary: | Failure in datasource while processing FETCH request when adding notification to resource group alert definition or to alert definition template | |||
|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | bkramer <bkramer> | |
| Component: | UI | Assignee: | Michael Burman <miburman> | |
| Status: | CLOSED ERRATA | QA Contact: | Filip Brychta <fbrychta> | |
| Severity: | high | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | JON 3.3.8 | CC: | dsteigne, fbrychta, loleary, mshirley, rvargasp, spinder | |
| Target Milestone: | DR01 | Keywords: | Regression, Triaged | |
| Target Release: | JON 3.3.9 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1448577 (view as bug list) | Environment: | ||
| Last Closed: | 2017-10-02 17:21:51 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: | ||||
| Bug Depends On: | 1444901 | |||
| Bug Blocks: | 1448577 | |||
|
Description
bkramer
2017-04-24 14:06:12 UTC
Received the same message but with a different stack trace when trying to add a notification to Alert Template: Message : Failure in datasource while processing FETCH request. Severity : Error Time : Thursday, April 27, 2017 11:54:36 AM UTC-5 Root Cause : (TypeError) : this$static is null Detail : com.google.gwt.core.client.JavaScriptException:(TypeError) : this$static is null --- STACK TRACE FOLLOWS --- (TypeError) : this$static is null at Unknown.$getAlertDefinitions(Unknown Source) at Unknown.$prepareNotificationsForPreview(Unknown Source) at Unknown.$executeFetch_14(Unknown Source) at Unknown.executeFetch_19(Unknown Source) at Unknown.transformRequest_0(Unknown Source) at Unknown.onInit_0/self_0.transformRequest<(Unknown Source) at Unknown.apply(Unknown Source) at Unknown.entry0(Unknown Source) at Unknown.entry_0/<(Unknown Source) at Unknown.isc_DataSource_getServiceInputs(Unknown Source) at Unknown.isc_DataSource_sendDSRequest(Unknown Source) at Unknown.isc_DataSource_performDSOperation(Unknown Source) at Unknown.isc_DataSource_fetchData(Unknown Source) at Unknown.isc_ResultSet_fetchRemoteData(Unknown Source) at Unknown.isc_ResultSet__fetchRemoteData(Unknown Source) at Unknown.isc_c_Class_fireCallback(Unknown Source) at Unknown.isc_c_Class__fireActionsOnPause(Unknown Source) at Unknown.isc_c_Class_fireCallback(Unknown Source) at Unknown.isc_c_Timer__fireTimeout(Unknown Source) at Unknown.anonymous(Unknown Source) at Unknown.anonymous(Unknown Source) This happens because the BZ 1382649 fix is accessing the AlertDefinition's Resource and cleaning it to prevent that issue. However, with the Group, there's no backing resource and the NPE comes from that. This begs the question - does the original fix for BZ 1382649 work correctly? It prevents the issue happening in resource scenarios, but will that error still happen with group resources? I quickly tested and found out that I can add succesfully two alert definitions to the same group definition - but that test doesn't cover all the scenarios. Rubens, can you verify if the original BZ 1382649 fix worked for group scenarios also? Otherwise, this commit will fix the issue by just checking if there's a backing resource before trying to do any operations to it. In the master: commit b66a2cec89d8a6dde5c32d4f850747bb73f8c9d5 Author: Michael Burman <miburman> Date: Fri Apr 28 13:04:35 2017 +0300 [BZ 1444899] Resource is not available when modifying group alert notifications I tested this fix on groups and dygroups and it worked correctly, the original fix for BZ 1382649 worked also. Sorry for the confusion, I'm saying that this fix combined with the fix for BZ 1382649 and the test case for groups scenarios works. Moving to ON_QA as available for test with the following binary: http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/133/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip *NOTE Build represents JON 3.3.9 DR01 build. Please report issues as you encounter them. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:2846 |