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

change min_history_level schema change to be compatible with previous version

    XMLWordPrintableJSON

Details

    Description

      In some configurations the HMS backend DB is used by HMS services with different versions. 
      HIVE-23107 dropped the min_history_level table from the backend DB making the new schema version incompatible with the older HMS services. 
      It is possible to modify that change to keep the compatibility

      • Keep the min_history_level table
      • Add the new fields for the compaction_queue the same way
      • Create a feature flag for min_history_level and if it is on
      • Keep the logic inserting to the table during openTxn
      • Keep the logic removing the records at commitTxn and abortTxn
      • Change the logic in the cleaner, to get the highwatermark the old way
      • But still change it to not start the cleaning before that
      • The txn_to_write_id table cleaning can work the new way in the new version and the old way in the old version
      • This feature flag can be automatically setup based on the existence of the min_history level table, this way if the table will be dropped all HMS-s can switch to the new functionality without restart

      Attachments

        Issue Links

          Activity

            People

              pvargacl Peter Varga
              pvargacl Peter Varga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 20m
                  4h 20m