hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2097) DistributedFileSystem.listPaths with some paths causes directory to be cleared
Date Tue, 29 Jan 2008 22:38:34 GMT

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

Doug Cutting commented on HADOOP-2097:
--------------------------------------

listPaths() is currently implemented in terms of listStatus(), so, if this still happens,
it may indicated a bug in listStatus().

Brian, can you provide a reproducible test case?

> DistributedFileSystem.listPaths with some paths causes directory to be cleared
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-2097
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2097
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.14.2
>         Environment: Linux
>            Reporter: Bryan Duxbury
>
> I am currently writing a Ruby wrapper to the Java DFS client libraries via JNI. While
attempting to test the listPaths method of the FileSystem class, I discovered that passing
a Path URI like "hdfs://tf11:7276/user/rapleaf" results in the /user/rapleaf directory being
cleared of all contents. A path URI like "hdfs://tf11:7276/user/rapleaf/*" will list the contents
of the directory without damage. 
> I have verified this by creating directories and listing via the bin/hadoop dfs -ls command.

> Obviously passing an incorrectly formatted string a method that should be read-only should
not have destructive effects. Also, the actual required path syntax for listings should be
recorded in the documentation.

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


Mime
View raw message