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

Daryn Sharp updated HADOOP-8131:
--------------------------------

    Attachment: HADOOP-8131.patch

Removed unnecessary commented code in the test.  FsShell dumps to stdout/stderr 
so I had to print to stdout to properly interlace the output.  That's also what 
other FsShell tests do.

The equals stuff is checking the basename of the path to catch ., .., dir/, 
dir/., dir/.. since Path will eat the chars off when it normalizes and/or fully 
qualifies.  That makes it "look" like a non-existent file.  The shell tracks 
the exact path supplied by the user, so it checks that basename for "it's a 
dir" conditions.
                
> FsShell put doesn't correctly handle a non-existent dir
> -------------------------------------------------------
>
>                 Key: HADOOP-8131
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8131
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.23.0
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>            Priority: Critical
>         Attachments: HADOOP-8131.patch, HADOOP-8131.patch, HADOOP-8131.patch
>
>
> {noformat}
> $ hadoop fs -ls
> ls: `.': No such file or directory
> $ hadoop fs -put file
> $ hadoop fs -ls
> Found 1 items
> -rw-r--r--   1 kihwal supergroup       2076 2011-11-04 10:37 .._COPYING_
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to