You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Dmitriy Fingerman (Jira)" <ji...@apache.org> on 2023/04/28 21:47:00 UTC

[jira] [Commented] (HIVE-24289) RetryingMetaStoreClient should not retry connecting to HMS on genuine errors

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

Dmitriy Fingerman commented on HIVE-24289:
------------------------------------------

Hi [~harshit.gupta],

I would be interested to work on this ticket.

I see it is assigned to you, but wasn't updated for long time.

Can I assign it to myself and try fixing it?

> RetryingMetaStoreClient should not retry connecting to HMS on genuine errors
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-24289
>                 URL: https://issues.apache.org/jira/browse/HIVE-24289
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Assignee: Harshit Gupta
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When there is genuine error from HMS, it should not be retried in RetryingMetaStoreClient. 
> For e.g, following query would be retried multiple times (~20+ times) in HMS causing huge delay in processing, even though this constraint is available in HMS. 
> It should just throw exception to client and stop retrying in such cases.
> {noformat}
> alter table web_sales add constraint tpcds_bin_partitioned_orc_10000_ws_s_hd foreign key  (ws_ship_hdemo_sk) references household_demographics (hd_demo_sk) disable novalidate rely;
> org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.TApplicationException: Internal error processing add_foreign_key
> 	at org.apache.hadoop.hive.ql.metadata.Hive.addForeignKey(Hive.java:5914)
> ..
> ...
> Caused by: org.apache.thrift.TApplicationException: Internal error processing add_foreign_key
>        at org.apache.thrift.TApplicationException.read(TApplicationException.java:111)
>        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
>        at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_add_foreign_key(ThriftHiveMetastore.java:1872)
> {noformat}
> https://github.com/apache/hive/blob/master/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/RetryingMetaStoreClient.java#L256
> For e.g, if exception contains "Internal error processing ", it could stop retrying all over again.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)