You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/10/21 07:21:01 UTC

[jira] [Updated] (HIVE-26386) Exceptions thrown in ObjectStore should contain all causes

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

Stamatis Zampetakis updated HIVE-26386:
---------------------------------------
    Fix Version/s:     (was: 4.0.0-alpha-2)

I cleared the fixVersion field since this ticket is still open. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED.

According to the [JIRA guidelines|https://cwiki.apache.org/confluence/display/Hive/HowToContribute] the fixVersion should be set only when the issue is resolved/closed.

> Exceptions thrown in ObjectStore should contain all causes
> ----------------------------------------------------------
>
>                 Key: HIVE-26386
>                 URL: https://issues.apache.org/jira/browse/HIVE-26386
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 4.0.0-alpha-1
>            Reporter: Wechar
>            Assignee: Wechar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> {{*RetryingHMSHandler*}} will retry the failed operations if the exception is caused by {{*JDOException*}} or {{{}*NucleusException*{}}}, the logic is in [RetryingHMSHandler.java#L185:|https://github.com/apache/hive/blob/723d52270488b8dbc108db1a9925d1c569415039/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RetryingHMSHandler.java#L185]
> {code:java}
>  } else if (e.getCause() instanceof MetaException && e.getCause().getCause() != null) {
>           if (e.getCause().getCause() instanceof javax.jdo.JDOException ||
>               e.getCause().getCause() instanceof NucleusException) {
>             // The JDOException or the Nucleus Exception may be wrapped further in a MetaException
>             caughtException = e.getCause().getCause();
> {code}
> But in {{{}*ObjectStore.java*{}}}, we found some exceptions thrown as {{{}*MetaException*{}}} are not wrapped by the causes, which cause some operations failed by {{JDOException}} can not do retry.



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