[ 
https://issues.apache.org/jira/browse/HIVE-27319?focusedWorklogId=861033&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-861033
 ]

ASF GitHub Bot logged work on HIVE-27319:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/May/23 14:56
            Start Date: 08/May/23 14:56
    Worklog Time Spent: 10m 
      Work Description: henrib commented on code in PR #4299:
URL: https://github.com/apache/hive/pull/4299#discussion_r1187546032


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ExceptionHandler.java:
##########
@@ -127,7 +128,7 @@ public ExceptionHandler toMetaExceptionIfInstance(String 
message, Class<?>... cl
    */
   public static void rethrowException(Exception e) throws TException {
     throw handleException(e)
-        .throwIfInstance(MetaException.class, NoSuchObjectException.class)
+        .throwIfInstance(MetaException.class, NoSuchObjectException.class, 
InvalidObjectException.class)

Review Comment:
   May be explicitly call `
   throw handleException(e) 
.throwIfInstance(MetaException.class,NoSuchObjectException.class,InvalidObjectException.class)
   ` instead of modifying rethrowException ?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 861033)
    Time Spent: 50m  (was: 40m)

> HMS server should throw InvalidObjectException in get_partitions_by_names() 
> when the table is missing/dropped
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-27319
>                 URL: https://issues.apache.org/jira/browse/HIVE-27319
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Standalone Metastore
>            Reporter: Sai Hemanth Gantasala
>            Assignee: Sai Hemanth Gantasala
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When the table object is dropped by a concurrent thread, the 
> get_partitions_by_names_req() API is currently throwing a 
> TApplicationException to the client. Instead, the HMS server should propagate 
> the InvalidObjectException thrown by getTable() to the HMS client. By doing 
> this, other services using HMS client will understand the exception better.



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

Reply via email to