[
https://issues.apache.org/jira/browse/HIVE-9625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14523509#comment-14523509
]
Prasad Mujumdar commented on HIVE-9625:
---------------------------------------
[~xuefuz] My apologies for late response.
The patch look fine to me. It will handle cases when a long running client
sessions, metastore restart or cancellation of ticket by another session etc .
Metastore has a garbage collection thread that removes expired tokens. However
that still leaves a window (1 hour by default) where clients could retrieve a
token that's expired or about to expire. I guess an option is for metastore
handle expired tokens inline. We can do that in a followup patch.
+1
> Delegation tokens for HMS are not renewed
> -----------------------------------------
>
> Key: HIVE-9625
> URL: https://issues.apache.org/jira/browse/HIVE-9625
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Reporter: Brock Noland
> Assignee: Brock Noland
> Attachments: HIVE-9625.1.patch
>
>
> AFAICT the delegation tokens stored in [HiveSessionImplwithUGI
> |https://github.com/apache/hive/blob/trunk/service/src/java/org/apache/hive/service/cli/session/HiveSessionImplwithUGI.java#L45]
> for HMS + Impersonation are never renewed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)