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

HiveSchemaTool.validateSchemaTables() should wrap a SQLException when rethrowing

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • None
    • None

    Description

      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. 

      Attachments

        1. HIVE-18877.1.patch
          5 kB
          Andrew Sherman
        2. HIVE-18877.2.patch
          5 kB
          Andrew Sherman
        3. HIVE-18877.3.patch
          5 kB
          Andrew Sherman
        4. HIVE-18877.4.patch
          5 kB
          Andrew Sherman
        5. HIVE-18877.5.patch
          5 kB
          Andrew Sherman
        6. HIVE-18877.6.patch
          5 kB
          Andrew Sherman

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            asherman Andrew Sherman Assign to me
            asherman Andrew Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment