You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2007/09/07 20:11:31 UTC
[jira] Created: (HADOOP-1858) ".." for ls does check for existence
of its parent directory.
".." for ls does check for existence of its parent directory.
--------------------------------------------------------------
Key: HADOOP-1858
URL: https://issues.apache.org/jira/browse/HADOOP-1858
Project: Hadoop
Issue Type: Bug
Reporter: Raghu Angadi
Priority: Minor
{{bin/hadoop -ls /user/nonexistent/.. }} lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-1858) ".." for ls does not check for
existence of its parent directory.
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529986 ]
Raghu Angadi commented on HADOOP-1858:
--------------------------------------
I agree. I don't think it is really a bug either. It did not cause any particular problem.
>From the shell, currently there does not seem to be a way to find if a particular directory exists. In that context, I tried if listing '..' might fail and indicate that such a directory does not exists.
> ".." for ls does not check for existence of its parent directory.
> ------------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-1858) ".." for ls does not check for
existence of its parent directory.
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529982 ]
Chris Douglas commented on HADOOP-1858:
---------------------------------------
It's not clear this is the wrong behavior. The path normalization in java.net.URI follows RFC2396, so the collapse of dot-segments is part of every Path's construction, prior to its interaction with a FileSystem. This seems like a POSIX/URI inconsistency, not necessarily a bug. Further, checking each parent URI for every relative path is relatively expensive in HDFS, so rewriting that section of the URI RFC doesn't seem like a good solution, either.
Is this causing problems somewhere?
> ".." for ls does not check for existence of its parent directory.
> ------------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HADOOP-1858) ".." for ls does not check for
existence of its parent directory.
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi resolved HADOOP-1858.
----------------------------------
Resolution: Invalid
> ".." for ls does not check for existence of its parent directory.
> ------------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-1858) ".." for ls does check for existence
of its parent directory.
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-1858:
---------------------------------
Description:
'{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
was:
{{bin/hadoop -ls /user/nonexistent/.. }} lists /user even if /user/nonexistent directory does not exist.
> ".." for ls does check for existence of its parent directory.
> --------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-1858) ".." for ls does not check for
existence of its parent directory.
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529996 ]
Chris Douglas commented on HADOOP-1858:
---------------------------------------
bin/hadoop dfs -stat <path> can check for a particular directory... but I'm not sure I follow your example.
I think we can close this.
> ".." for ls does not check for existence of its parent directory.
> ------------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-1858) ".." for ls does not check for
existence of its parent directory.
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-1858:
---------------------------------
Summary: ".." for ls does not check for existence of its parent directory. (was: ".." for ls does check for existence of its parent directory.)
> ".." for ls does not check for existence of its parent directory.
> ------------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-1858) ".." for ls does check for existence
of its parent directory.
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-1858:
---------------------------------
Component/s: dfs
> ".." for ls does check for existence of its parent directory.
> --------------------------------------------------------------
>
> Key: HADOOP-1858
> URL: https://issues.apache.org/jira/browse/HADOOP-1858
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Priority: Minor
>
> '{{bin/hadoop -ls /user/nonexistent/..}}' lists /user even if /user/nonexistent directory does not exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.