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

Atomic Schema Upgrade for HMS

    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

          People

            achennagiri Abhay
            achennagiri Abhay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: