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

ASF GitHub Bot commented on HIVE-17428:
---------------------------------------

GitHub user sankarh opened a pull request:

    https://github.com/apache/hive/pull/243

    HIVE-17428: REPL LOAD of ALTER_PARTITION event doesn't create import tasks 
if the partition doesn't exist during analyze phase.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sankarh/hive HIVE-17428

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/243.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #243
    
----
commit 6838a6f9777aec97dcd204d295b3ba4179986e6b
Author: Sankar Hariappan <mailtosank...@gmail.com>
Date:   2017-09-05T17:25:57Z

    HIVE-17428: REPL LOAD of ALTER_PARTITION event doesn't create import tasks 
if the partition doesn't exist during analyze phase.

----


> REPL LOAD of ALTER_PARTITION event doesn't create import tasks if the 
> partition doesn't exist during analyze phase.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-17428
>                 URL: https://issues.apache.org/jira/browse/HIVE-17428
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2, repl
>    Affects Versions: 2.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: DR, replication
>             Fix For: 3.0.0
>
>         Attachments: HIVE-17428.01.patch, HIVE-17428.02.patch
>
>
> If the incremental dump event sequence have ADD_PARTITION followed by 
> ALTER_PARTITION doesn't create any task for ALTER_PARTITION event as the 
> partition doesn't exist during analyze phase. Due to this REPL STATUS returns 
> wrong last repl ID.
> Scenario:
> 1. Create DB
> 2. Create partitioned table.
> 3. Bootstrap dump and load
> 4. Insert into table to a dynamically created partition. - This insert 
> generate ADD_PARTITION and ALTER_PARTITION events.
> 5. Incremental dump and load.
> - Load will be successful.
> - But the last repl ID set was incorrect as ALTER_PARTITION event was never 
> applied.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to