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

[jira] [Assigned] (HIVE-18808) Make compaction more robust when stats update fails

     [ https://issues.apache.org/jira/browse/HIVE-18808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koifman reassigned HIVE-18808:
-------------------------------------


> Make compaction more robust when stats update fails
> ---------------------------------------------------
>
>                 Key: HIVE-18808
>                 URL: https://issues.apache.org/jira/browse/HIVE-18808
>             Project: Hive
>          Issue Type: Improvement
>          Components: Transactions
>    Affects Versions: 1.0.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>            Priority: Major
>
>  
> Worker.gatherStats() runs a "analyze table..." command to update stats which requires SessionState.  SessionState objects are cached in ThreadLocal.  If for some reason Session init fails, it may still get attached to the thread which then causes a subsequent request that uses the same tread to gather stats fail because it has a bad session object.  HIVE-15658 describes the same issue in a different context.  
> There is currently no way to recycle a session from outside HMS.
> Failure to gather stats should not kill a compaction job which then prevents Cleaner from running.



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