hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vihang Karajgaonkar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-17659) get_token thrift call fails for DBTokenStore in remote HMS mode
Date Mon, 02 Oct 2017 22:14:00 GMT

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

Vihang Karajgaonkar updated HIVE-17659:
---------------------------------------
    Attachment: HIVE-17659.02-branch-2.patch

Attaching second version of the patch. The newly added test for testing DBTokenStore when
impersonation is turned off is modified to set {{ConfVars.HIVE_SERVER2_ENABLE_DOAS}} to false.

> get_token thrift call fails for DBTokenStore in remote HMS mode
> ---------------------------------------------------------------
>
>                 Key: HIVE-17659
>                 URL: https://issues.apache.org/jira/browse/HIVE-17659
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 2.1.0, 2.1.1, 2.2.0
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>         Attachments: HIVE-17659.01-branch-2.patch, HIVE-17659.02-branch-2.patch
>
>
> The {{get_token(String tokenIdentifier)}} HMS thrift API fails when HMS is deployed in
remote mode and when there is no token found with that tokenIndentifier. This could happen
when an application calls a renewDelegationToken on an expired/cancelled delegation token.
The issue is that get_token tries to return a null result values which cannot be done in Thrift.
The API call errors out with {{org.apache.thrift.TApplicationException unknown result}} exception
which is uncaught and HS2 thrift server closes the client transport. So no further calls from
that connection can be accepted unless client reconnects to HS2 again.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message