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

INSERT into a dynamically partitioned table with hive.stats.autogather = false throws a MetaException

    XMLWordPrintableJSON

Details

    Description

      When the test TestStatsUpdaterThread#testTxnDynamicPartitions added in the attached patch is run it throws exception (full logs attached.)

      org.apache.hadoop.hive.metastore.api.MetaException: Cannot change stats state for a transactional table default.simple_stats without providing the transactional write state for verification (new write ID 5, valid write IDs null; current state {"BASIC_STATS":"true","COLUMN_STATS":{"s":"true"}}; new state null
      at org.apache.hadoop.hive.metastore.ObjectStore.alterPartitionNoTxn(ObjectStore.java:4328) 

      Attachments

        1. metaexception_repro.patch
          2 kB
          Ashutosh Bapat
        2. org.apache.hadoop.hive.ql.stats.TestStatsUpdaterThread-output.txt
          240 kB
          Ashutosh Bapat
        3. HIVE-21430.01.patch
          6 kB
          Ashutosh Bapat
        4. HIVE-21430.02.patch
          7 kB
          Ashutosh Bapat
        5. HIVE-21430.03.patch
          7 kB
          Ashutosh Bapat
        6. HIVE-21430.04.patch
          7 kB
          Ashutosh Bapat

        Issue Links

          Activity

            People

              ashutosh.bapat Ashutosh Bapat
              ashutosh.bapat Ashutosh Bapat
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Time Spent - 1h 10m Remaining Estimate - 46h 50m
                  46h 50m
                  Logged:
                  Time Spent - 1h 10m Remaining Estimate - 46h 50m
                  1h 10m