Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5641

BeeLineOpts ignores Throwable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      BeelineOpts has the following code:

          } catch (Throwable t) {
             return -1;
           }
      

      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

      Attachments

        1. HIVE-5641.patch
          0.6 kB
          Brock Noland

        Activity

          People

            brocknoland Brock Noland
            brocknoland Brock Noland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: