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

Sankar Hariappan edited comment on HIVE-16488 at 4/20/17 6:55 PM:
------------------------------------------------------------------

Added 01.patch:
- DB is considered empty if have no tables/views and functions.
- If DB exist and is empty, then REPL LOAD will just alter the lastReplID part 
of DB parameters using DDLTask for alter DB.
- There is no way to set the description for the DB in case of empty DB.
- If DB exists and is not empty, then REPL LOAD continues to throw exception.

Request [~sushanth], [~thejas] to review the patch.


was (Author: sankarh):
Added 01.patch:
- DB is considered empty if have no tables/views and functions.
- If DB exist and is empty, then REPL LOAD will just alter the lastReplID part 
of DB parameters using DDLTask for alter DB.
- There is no way to set the description for the DB in case of empty DB.
- If DB exists and is not empty, then REPL LOAD continues to throw exception.


> Support replicating into existing db if the db is empty
> -------------------------------------------------------
>
>                 Key: HIVE-16488
>                 URL: https://issues.apache.org/jira/browse/HIVE-16488
>             Project: Hive
>          Issue Type: Sub-task
>          Components: repl
>    Affects Versions: 2.2.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: DR, Replication
>         Attachments: HIVE-16488.01.patch
>
>
> This is a potential usecase where a user may want to manually create a db on 
> destination to make sure it goes to a certain dir root, or they may have 
> cases where the db (default, for instance) was automatically created. We 
> should still allow replicating into this without failing if the db is empty.



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

Reply via email to