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.