hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Plush (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7218) FileUtil.copyMerge implementation error
Date Sat, 25 Jun 2011 19:15:48 GMT

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

Jim Plush commented on HADOOP-7218:
-----------------------------------

This seems to be a duplicate of:

https://issues.apache.org/jira/browse/HADOOP-7135

This is also fixed in the trunk:

FileUtil.copyMerge:

 dstFile = checkDest(srcDir.getName(), dstFS, dstFile, false);

    if (!srcFS.getFileStatus(srcDir).isDirectory())
      return false;
   
    OutputStream out = dstFS.create(dstFile);

> FileUtil.copyMerge implementation error
> ---------------------------------------
>
>                 Key: HADOOP-7218
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7218
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.21.0
>         Environment: CENTOS 5.5 64bit
>            Reporter: XiaoboGu
>
> if (srcFS.getFileStatus(srcDir).isDirectory())
> 			return false;
> should be 
> if (!srcFS.getFileStatus(srcDir).isDirectory())
> 			return false;

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message