hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5641) BeeLineOpts ignores Throwable
Date Fri, 06 Dec 2013 16:53:44 GMT

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

Brock Noland updated HIVE-5641:
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

Thank you for the review! I committed this to trunk.

> BeeLineOpts ignores Throwable
> -----------------------------
>
>                 Key: HIVE-5641
>                 URL: https://issues.apache.org/jira/browse/HIVE-5641
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5641.patch
>
>
> BeelineOpts has the following code:
> {noformat}
>     } catch (Throwable t) {
>        return -1;
>      }
> {noformat}
> which is bad. I believe it is there because the code called maybe buggy and throw such
things as ArrayIndex or NoSuchElement etc.
> I propose we:
> 1) catch exception, not throwable. Usage should remain the same without having a giant
black hole
> 2) that we log the exception so we can figure out what is wrong with the underlying code



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message