You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/10 10:19:00 UTC

[jira] [Work logged] (HADOOP-16878) Copy command in FileUtil to throw an exception if the source and destination is the same

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

ASF GitHub Bot logged work on HADOOP-16878:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Oct/20 10:18
            Start Date: 10/Oct/20 10:18
    Worklog Time Spent: 10m 
      Work Description: ayushtkn commented on pull request #1857:
URL: https://github.com/apache/hadoop/pull/1857#issuecomment-706525903


   Any plans moving forward. Once changed I think will work with HDFS as well. Anything blocking?


----------------------------------------------------------------
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:
users@infra.apache.org


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

            Worklog Id:     (was: 498892)
    Remaining Estimate: 0h
            Time Spent: 10m

> Copy command in FileUtil to throw an exception if the source and destination is the same
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-16878
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16878
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 3.3.0
>            Reporter: Gabor Bota
>            Assignee: Gabor Bota
>            Priority: Major
>         Attachments: hdfsTest.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We encountered an error during a test in our QE when the file destination and source path were the same. This happened during an ADLS test, and there were no meaningful error messages, so it was hard to find the root cause of the failure.
> The error we saw was that file size has changed during the copy operation. The new file creation in the destination - which is the same as the source - creates a file and sets the file length to zero. After this, getting the source file will fail because the sile size changed during the operation.
> I propose a solution to at least log in error level in the {{FileUtil}} if the source and destination of the copy operation is the same, so debugging issues like this will be easier in the future.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org