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

Sushanth Sowmyan edited comment on HIVE-16684 at 5/17/17 11:38 PM:
-------------------------------------------------------------------

-One more thing:

d) If ObjectStore.getTable returns null, HiveMetaStore.HMSHandler.getTable will 
throw a NoSuchObjectException which is the right behaviour. However, rather 
than depending on that behaviour, it would be better for your getTable function 
to directly throw a NoSuchObjectException in this mode.-

Edit : Ignore this comment. I realize that we are bound by the requirement of 
the RawStore api that we can only throw a MetaException, not a 
NoSuchObjectException. null is fine.


was (Author: sushanth):
One more thing:

d) If ObjectStore.getTable returns null, HiveMetaStore.HMSHandler.getTable will 
throw a NoSuchObjectException which is the right behaviour. However, rather 
than depending on that behaviour, it would be better for your getTable function 
to directly throw a NoSuchObjectException in this mode.

> Bootstrap REPL DUMP shouldn't fail when table is dropped after fetching the 
> table names.
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-16684
>                 URL: https://issues.apache.org/jira/browse/HIVE-16684
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive, repl
>    Affects Versions: 2.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>         Attachments: HIVE-16684.01.patch
>
>
> Currently, bootstrap dump will fail if the table does't exist when try to 
> dump. This shall occur when table is dropped after REPL DUMP fetched the 
> table names.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to