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

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

GitHub user sankarh opened a pull request:

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

    HIVE-20476: CopyUtils used by REPL LOAD and EXPORT/IMPORT operations ignore 
distcp error.

    

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

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

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

    https://github.com/apache/hive/pull/424.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 #424
    
----

----


> CopyUtils used by REPL LOAD and EXPORT/IMPORT operations ignore distcp error.
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-20476
>                 URL: https://issues.apache.org/jira/browse/HIVE-20476
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, repl
>    Affects Versions: 3.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Major
>              Labels: DR, Export, Import, Replication, pull-request-available
>         Attachments: HIVE-20476.01.patch
>
>
> CopyUtils uses FileUtils.distCp to copy files but doesn't check the return 
> value. It returns false if the copy fails.
> Now, REPL LOAD and EXPORT/IMPORT commands internally uses CopyUtils to copy 
> data files across clusters and here it may return success even if file copy 
> fails and may cause data loss.
> Need to throw error and retry.



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

Reply via email to