You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2018/11/09 06:43:00 UTC

[jira] [Commented] (HIVE-20896) CachedStore fail to cache stats in multiple code paths

    [ https://issues.apache.org/jira/browse/HIVE-20896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16680947#comment-16680947 ] 

Daniel Dai commented on HIVE-20896:
-----------------------------------

Initial patch. Will follow up with tests.

> CachedStore fail to cache stats in multiple code paths
> ------------------------------------------------------
>
>                 Key: HIVE-20896
>                 URL: https://issues.apache.org/jira/browse/HIVE-20896
>             Project: Hive
>          Issue Type: Bug
>          Components: Standalone Metastore
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>            Priority: Major
>         Attachments: HIVE-20896.0.patch
>
>
> 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()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)