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

Atomic Schema Upgrade for HMS

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

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Metastore
    • None

    Description

      Currently, as schematool applies schema changes during an upgrade, each change is autocommitted. So if it fails after applying a few changes from an upgrade file, those changes remain in the schema. So re-running the schematool fails at the first line because that change already exists.

      Instead, we should create a transactional boundary between each upgrade file, aka commit only after all the changes in an upgrade file are successful.

      Attachments

        Activity

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

          People

            achennagiri Abhay Assign to me
            achennagiri Abhay

            Dates

              Created:
              Updated:

              Slack

                Issue deployment