hadoop-hdfs-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/HDFS-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138234#comment-13138234
] 

Uma Maheswara Rao G commented on HDFS-952:
------------------------------------------

I will be fixing this issue as part of HDFS-2436. 
So, duplicating this issue with that.
                
> 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