Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21637 Synchronized metastore cache
  3. HIVE-25372

[Hive] Advance write ID for remaining DDLs

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • HiveServer2

    Description

      We guarantee data consistency for table metadata, when serving data from the HMS cache. HMS cache relies on Valid Write IDs to decide whether to serve from cache or refresh from the backing DB and serve, so we have to ensure we advance write IDs during all alter table flows. We have to ensure we advance the write ID for below DDLs.

      AlterTableSetOwnerAnalyzer.java
      AlterTableSkewedByAnalyzer.java
      AlterTableSetSerdeAnalyzer.java
      AlterTableSetSerdePropsAnalyzer.java
      AlterTableUnsetSerdePropsAnalyzer.java
      AlterTableSetPartitionSpecAnalyzer
      AlterTableClusterSortAnalyzer.java
      AlterTableIntoBucketsAnalyzer.java
      AlterTableConcatenateAnalyzer.java
      AlterTableCompactAnalyzer.java
      AlterTableSetFileFormatAnalyzer.java
      AlterTableSetSkewedLocationAnalyzer.java

      Attachments

        Issue Links

          Activity

            People

              kishendas Kishen Das
              kishendas Kishen Das
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1.5h
                  1.5h