[ 
https://issues.apache.org/jira/browse/MAPREDUCE-7287?focusedWorklogId=593220&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-593220
 ]

ASF GitHub Bot logged work on MAPREDUCE-7287:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/May/21 10:23
            Start Date: 07/May/21 10:23
    Worklog Time Spent: 10m 
      Work Description: zhengchenyu commented on pull request #2852:
URL: https://github.com/apache/hadoop/pull/2852#issuecomment-834244745


   @ayushtkn  @steveloughran   
   I add two method (testDistCpWithFile, testDistCpWithUpdateExistFile) in 
AbstractContractDistCpTest. testDistCpWithUpdateExistFile will reproduce this 
bug if not apply this path.
   I don't know how to test cloud filesystem, so I only test 
OptionalTestHDFSContractDistCp class in my laptop. 
   I did't use distCpUpdate, because this problem only reproduced when both 
-delete and -update are specified. I afraid that distCpUpdate's parameter will 
changed in the future.
   At last, sorry for choose wrong module, this issue should belong to HADOOP 
but not MAPREDUCE. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 593220)
    Time Spent: 2h  (was: 1h 50m)

> Distcp will delete exists file ,  If we use "-delete and -update" options and 
> distcp file.
> ------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-7287
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7287
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: distcp
>    Affects Versions: 3.2.1
>            Reporter: zhengchenyu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.3.1
>
>         Attachments: MAPREDUCE-7287.001.patch
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> hdfs://ns1/tmp/a is an existing file, hdfs://ns2/tmp/a is also an existing 
> file.
> When I run this command, 
> {code:java}
> hadoop distcp -delete -update hdfs://ns1/tmp/a hdfs://ns2/tmp/a
> {code}
> I Found hdfs://ns2/tmp/a is deleted unpectectedly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org

Reply via email to