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

Sankar Hariappan edited comment on HIVE-19130 at 4/10/18 12:23 PM:
-------------------------------------------------------------------

Attached 01.patch with the big fixed as
 * Event type is passed to ImportSemanticAnalyzer.
 * If event type is create_table and if table exists, then we will add Drop 
table task before creating the table.

Request [~thejas], [~daijy] to please review it!


was (Author: sankarh):
Attached 01.patch with the big fixed as
 * Event type is passed to ImportSemanticAnalyzer.
 * If event type is create_table and if table exists, then we will add Drop 
table task before creating the table.

Request [~thejas] to please review it!

> NPE is thrown when REPL LOAD applied drop partition event.
> ----------------------------------------------------------
>
>                 Key: HIVE-19130
>                 URL: https://issues.apache.org/jira/browse/HIVE-19130
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, repl
>    Affects Versions: 3.0.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Major
>              Labels: DR, Replication
>             Fix For: 3.1.0
>
>         Attachments: HIVE-19130.01.patch
>
>
> During incremental replication, if we split the events batch as follows, then 
> the REPL LOAD on second batch throws NPE.
> Batch-1: CREATE_TABLE(t1) -> ADD_PARTITION(t1.p1) -> DROP_PARTITION (t1.p1)
> Batch-2: DROP_TABLE(t1) ->  CREATE_TABLE(t1) -> ADD_PARTITION(t1.p1) -> 
> DROP_PARTITION (t1.p1)



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

Reply via email to