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

CachedStore fail to cache stats in multiple code paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Standalone Metastore
    • None

    Description

      Bunch of issues discovered in CachedStore to keep up column statistics:
      1. The criteria for partition/non-partition is wrong (table.isSetPartitionKeys() is always true)
      2. In update(), partition column stats are removed when populate table basic stats
      3. Dirty flags are true right after prewarm(), so the first update() does not do anything
      4. Could invoke cacheLock without holding the lock, which results a freeze in update()

      Attachments

        1. HIVE-20896.6.patch
          8 kB
          Daniel Dai
        2. HIVE-20896.5.patch
          9 kB
          Daniel Dai
        3. HIVE-20896.4.patch
          5 kB
          Daniel Dai
        4. HIVE-20896.3.patch
          5 kB
          Daniel Dai
        5. HIVE-20896.2.patch
          5 kB
          Daniel Dai
        6. HIVE-20896.1.patch
          5 kB
          Daniel Dai
        7. HIVE-20896.0.patch
          5 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: