hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Foley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7393) PathData saves original string value, inviting failure when CWD changes
Date Tue, 14 Jun 2011 21:48:47 GMT

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

Matt Foley commented on HADOOP-7393:

Three solutions might be valid:
# Like Path, convert the pathstring to an absolute pathstring.  If it is desired to give the
user an fs pathstring instead of URI as used by Path, then convert the relative fs pathstring
into an absolute fs pathstring, and store that.
# Store the absolute path (or Path) of the CWD at instantiation time.  When #string is referenced,
compare the current WD to the stored WD, and if they differ, convert #string to an absolute
stringpath wrt the stored WD.
# Don't store #string.  Like Path, discard the pathstring after instantiation.  If needed
later, return Path#uri.

> PathData saves original string value, inviting failure when CWD changes
> -----------------------------------------------------------------------
>                 Key: HADOOP-7393
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7393
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
> PathData#string stores the pathstring originally used to construct the Path, and returns
it from various methods, apparently in an attempt to improve the user experience for the shell.
> However, the current working directory may change, and if so this string value becomes
meaningless and/or incorrect in context.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message