hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-952) FSNamesystem.setTimes fails on directory
Date Fri, 28 Oct 2011 11:48:32 GMT

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

Uma Maheswara Rao G resolved HDFS-952.
--------------------------------------

    Resolution: Duplicate
    
> FSNamesystem.setTimes fails on directory
> ----------------------------------------
>
>                 Key: HDFS-952
>                 URL: https://issues.apache.org/jira/browse/HDFS-952
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>            Reporter: Zheng Shao
>            Assignee: Guanghao Shen
>
> The code assumes the path is a file, but it can be a directory as well.
> FSNamesystem.java:921
> {code}
>   public synchronized void setTimes(String src, long mtime, long atime) throws IOException
{
>     ...
>     INodeFile inode = dir.getFileINode(src);
>     if (inode != null) {
>       dir.setTimes(src, inode, mtime, atime, true);
>       ...
>     } else {
>       ...
>   }
> {code}

--
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

        

Mime
View raw message