Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3902

Bad error message: core cause not included in text; maybe wrong kind

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • 1.13.0
    • None
    • None

    Description

      When trying to use an empty directory as a table causes Drill to fail by hitting an IndexOutOfBoundsException, the final error message includes the text from the IndexOutOfBoundsException's getMessage()--but fails to mention IndexOutOfBoundsException itself (or equivalent information):

      0: jdbc:drill:zk=localhost:2181> SELECT *   FROM `dfs`.`root`.`/tmp/empty_directory`;
      Error: VALIDATION ERROR: Index: 0, Size: 0
      
      
      [Error Id: 66ff61ed-ea41-4af9-87c5-f91480ef1b21 on dev-linux2:31010] (state=,code=0)
      0: jdbc:drill:zk=localhost:2181> 
      

      Also, since this isn't a coherent/intentional validation error but an internal error, shouldn't this be a SYSTEM ERROR message?

      (Does the SYSTEM ERROR case including the exception class name in the message?)

      Daniel

      Attachments

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: