You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/02/05 07:24:28 UTC
[jira] Created: (HDFS-952) FSNamesystem.setTimes fails on directory
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
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.