[ 
https://issues.apache.org/jira/browse/HADOOP-6730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jakob Homan updated HADOOP-6730:
--------------------------------

              Summary: Bug in FileContext#copy and provide base class for 
FileContext tests  (was: Bug in FileContext#copy)
         Hadoop Flags: [Reviewed]
        Fix Version/s:     (was: 0.21.0)
    Affects Version/s:     (was: 0.21.0)
          Component/s: test

+1

> Bug in FileContext#copy and provide base class for FileContext tests
> --------------------------------------------------------------------
>
>                 Key: HADOOP-6730
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6730
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 0.22.0
>            Reporter: Eli Collins
>            Assignee: Ravi Phulari
>             Fix For: 0.22.0
>
>         Attachments: HADOOP-6730.2.patch, HADOOP-6730.3.patch, 
> HADOOP-6730.4.patch, HADOOP-6730.patch
>
>
> Thanks to Eli, He noticed that there is no test for FileContext#Copy 
> operation. 
> On further investigation with the help of Sanjay we found that there is bug 
> in FileContext#checkDest.
> {noformat}
>   FileStatus dstFs = getFileStatus(dst);
>     try {
>       if (dstFs.isDir()) {
>         if (null == srcNa
> {noformat}
>  *FileStatus dstFs = getFileStatus(dst);* should be in try...catch block.
> {noformat}
>     try {
>        FileStatus dstFs = getFileStatus(dst);
>        if (dstFs.isDir()) {
>           if (null == srcNa
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to