hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kazuho Fujii (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12543) Path#isRoot() returns true if the path is ".".
Date Tue, 03 Nov 2015 04:32:27 GMT

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

Kazuho Fujii updated HADOOP-12543:
----------------------------------
    Description: {{Path#isRoot()}} method is expected to return true if and only if the path
represents the root of a file system. But, it returns true in the case where the path is ".".
This is because {{getParent()}} method returns null when the path in URI is empty.  (was:
{{Path#isRoot()}} methods is expected to return true if and only if the path represents the
root of a file system. But, it returns true in the case where the path is ".". This is because
{{getParent()}} method returns null when the path in URI is empty.)

> Path#isRoot() returns true if the path is ".".
> ----------------------------------------------
>
>                 Key: HADOOP-12543
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12543
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Kazuho Fujii
>         Attachments: HADOOP-12543.001.patch
>
>
> {{Path#isRoot()}} method is expected to return true if and only if the path represents
the root of a file system. But, it returns true in the case where the path is ".". This is
because {{getParent()}} method returns null when the path in URI is empty.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message