[
https://issues.apache.org/jira/browse/HIVE-18877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vihang Karajgaonkar updated HIVE-18877:
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.4.0
3.0.0
Status: Resolved (was: Patch Available)
Pushed to master and branch-2. Also, changed the dependency scope to test for
commons-dbcp in the itests/hive-unit/pom.xml. Thanks for your contribution
[~asherman]
> HiveSchemaTool.validateSchemaTables() should wrap a SQLException when
> rethrowing
> --------------------------------------------------------------------------------
>
> Key: HIVE-18877
> URL: https://issues.apache.org/jira/browse/HIVE-18877
> Project: Hive
> Issue Type: Bug
> Reporter: Andrew Sherman
> Assignee: Andrew Sherman
> Priority: Major
> Fix For: 3.0.0, 2.4.0
>
> Attachments: HIVE-18877.1.patch, HIVE-18877.2.patch,
> HIVE-18877.3.patch, HIVE-18877.4.patch, HIVE-18877.5.patch, HIVE-18877.6.patch
>
>
> If schematool is run with the -verbose flag then it will print a stack trace
> for an exception that occurs. If a SQLException is caught during
> HiveSchemaTool.validateSchemaTables() then a HiveMetaException is rethrown
> containing the text of the SQLException. If we instead throw a
> HiveMetaException that wraps the SQLException then the stacktrace will help
> with diagnosis of issues where the SQLException contains a generic error
> text.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)