You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Andrew Sherman (JIRA)" <ji...@apache.org> on 2018/03/06 23:55:00 UTC

[jira] [Updated] (HIVE-18877) HiveSchemaTool.validateSchemaTables() should wrap a SQLException when rethrowing

     [ https://issues.apache.org/jira/browse/HIVE-18877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Sherman updated HIVE-18877:
----------------------------------
    Attachment: HIVE-18877.1.patch

> 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
>         Attachments: HIVE-18877.1.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)