You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ion Alberdi (JIRA)" <ji...@apache.org> on 2019/08/08 13:26:00 UTC
[jira] [Commented] (HIVE-22033) HiveServer2: fix delegation token
renewal
[ https://issues.apache.org/jira/browse/HIVE-22033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902974#comment-16902974 ]
Ion Alberdi commented on HIVE-22033:
------------------------------------
FYI PR on master [https://github.com/apache/hive/pull/747]
> HiveServer2: fix delegation token renewal
> -----------------------------------------
>
> Key: HIVE-22033
> URL: https://issues.apache.org/jira/browse/HIVE-22033
> Project: Hive
> Issue Type: Bug
> Affects Versions: 2.3.5
> Reporter: Ion Alberdi
> Priority: Major
>
> Hello, the issue we faced (and a proposal for a fix) in our hive instances is depicted at
> [https://github.com/criteo-forks/hive/pull/24]
> Reading the master branch of the project
> [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/security/TokenStoreDelegationTokenSecretManager.java#L147]
> I think the same behavior is replicated there.
> Long story short, *TokenStoreDelegationTokenSecretManager.renewToken*, does not update the expiry date of a given token (as it does not get the updated DelegationTokenInformation from *super.currentTokens*).
> This makes any call to renewToken ineffective (the expiry date of the token is not postponed).
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)