| Summary: | No error message when Logging Agent Outputter fails to communicate with Agent Controller | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Dave Smith <smith> | ||||||
| Component: | TPTP.monitoring | Assignee: | Cindy Jin <jx_china> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | Keywords: | plan | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | closed460 | ||||||||
| Bug Depends on: | 113173 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dave Smith
The org.eclipse.hyades.logging.adapter.outputters.CBELogOutputter.update() method creates an org.eclipse.hyades.logging.core.LoggingAgent object but there is no exception thrown by the LoggingAgent constructor or way of determining that the agent cannot communicate with the Agent Controller. Without changes to LoggingAgent there is now way CBELogOutputter can return an error for this case. Deferring this to 4.2 because 113173 is targetted to 4.2. It is desireable for the CBELogOutputter.update method to throw an exception if the Agent Controller is unavailable. Created attachment 28497 [details]
Patch
This patch assumes bugzilla 113173 is fixed as I suggested.
A readme item is added for this in 4.1 Release notes - see https://bugs.eclipse.org/bugs/show_bug.cgi?id=118710. Deferring to 4.3 because the required bugzilla 113173 is being deferred. Cannot be contained in 4.3 - deferring to 4.4. Increasing priority because 113171 was implemented in 4.3. Targetting to complete in i2 and reassigning to Cindy. Created attachment 61748 [details]
patch file
Dave, I created the patch based on the patch you attached before. Please review it. Thanks
Deferring this to iteration 3 because it was too late to integrate this patch into iteration 2. I did not want to risk a regression. Note, the new message is already in the properties file in CVS. It was added in a previous release. Committed fix to TPTP Head CVS. Made a small change to the patch submitted by Cindy. I moved the !cbelogger.isAgentControllerAvailable() test inside the if (cbelogger == null && !validating && !isDisabled()) block so it is not executed when the outputter is disabled. I also changed the default outputter in the GLA Editor to be the LogImportEditor from CBELogOutputter because CBELogOuputter now throws an exception which would make it difficult to test new adapters in the editor. The changed editor files were: org.eclipse.hyades.logging.adapter.ui.internal.presentation.AdaptorModelWizard org.eclipse.hyades.logging.adapter.ui.extension.internal.impl.ContextInstanceProvider As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |