hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-20428) HiveStreamingConnection should use addPartition if not exists API
Date Mon, 20 Aug 2018 22:20:00 GMT

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

Prasanth Jayachandran commented on HIVE-20428:
----------------------------------------------

That was the case when SQL queries where used to add partition (alter table <tablename>
add partition if not exists). Direct metastore API interaction would not acquire X lock afaik.  

> HiveStreamingConnection should use addPartition if not exists API
> -----------------------------------------------------------------
>
>                 Key: HIVE-20428
>                 URL: https://issues.apache.org/jira/browse/HIVE-20428
>             Project: Hive
>          Issue Type: Bug
>          Components: Streaming, Transactions
>    Affects Versions: 4.0.0, 3.2.0
>            Reporter: Prasanth Jayachandran
>            Priority: Major
>
> [https://github.com/apache/hive/blob/f280361374c6219d8734d5972c740d6d6c3fb7ef/streaming/src/java/org/apache/hive/streaming/HiveStreamingConnection.java#L379-L381]
>  
> catches AlreadyExistsException when adding partition. Instead use add_partitions API
with ifNotExists set to true. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message