hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HDFS-952) FSNamesystem.setTimes fails on directory
Date Fri, 05 Feb 2010 06:42:28 GMT

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

Zheng Shao reassigned HDFS-952:
-------------------------------

    Assignee: Guanghao Shen

> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message