Bug 1035022 - Schema Manager Exceptions Hidden in RuntimeException
Summary: Schema Manager Exceptions Hidden in RuntimeException
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Storage Node
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.10
Assignee: Stefan Negrea
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-26 21:10 UTC by Stefan Negrea
Modified: 2014-03-25 21:02 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-03-25 21:02:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Stefan Negrea 2013-11-26 21:10:03 UTC
Description of problem:
The schema manager for the Storage Cluster hides important schema version check exceptions behind RuntimeExceptions. It is important for these exceptions to be thrown as is for the consumer to get the correct result of the version check.

This does not affect the current release directly because there is only one schema version. This problem will only be visible in future release if and only if there are updates to the Storage Cluster schema.


Steps to Reproduce:
1. Create an update to the Storage schema.
2. Attempt to run to the installer to update the Storage schema
3. View the results of the schema upgrade

Actual results:
Unexpected exception thrown.


Expected results:
Schema manager should update the current schema.


Additional info:
As mentioned above, this does not affect the current release because there is one and only schema version for the Storage Cluster.

Comment 1 Stefan Negrea 2013-11-26 21:32:01 UTC
Allowed schema specific exceptions to bubble up without being wrapped into a Runtime exception.

master branch commit:

https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=ff5865934982c2fe369d5438164ea457a636b4b1


Note You need to log in before you can comment on or make changes to this bug.