hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-9642) Hive metastore client retries don't happen consistently for all api calls
Date Tue, 24 Nov 2015 23:50:11 GMT

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

Thejas M Nair commented on HIVE-9642:
-------------------------------------

+1
Thanks for also adding the test case.

Note for others-  this new patch also addresses the cases where MetaStoreClient constructor
has errors.


> Hive metastore client retries don't happen consistently for all api calls
> -------------------------------------------------------------------------
>
>                 Key: HIVE-9642
>                 URL: https://issues.apache.org/jira/browse/HIVE-9642
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Xiaobing Zhou
>            Assignee: Daniel Dai
>         Attachments: HIVE-9642.1.patch, HIVE-9642.2.patch, HIVE-9642.3.patch
>
>
> When org.apache.thrift.transport.TTransportException is thrown for issues like socket
timeout, the retry via RetryingMetaStoreClient happens only in certain cases.
> Retry happens for the getDatabase call in but not for getAllDatabases().
> The reason is RetryingMetaStoreClient checks for TTransportException being the cause
for InvocationTargetException. But in case of some calls such as getAllDatabases in HiveMetastoreClient,
all exceptions get wrapped in a MetaException. We should remove this unnecessary wrapping
of exceptions for certain functions in HMC.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message