Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
0.22.0
-
None
-
None
-
None
Description
The code assumes the path is a file, but it can be a directory as well.
FSNamesystem.java:921
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 { ... }
Attachments
Issue Links
- duplicates
-
HDFS-2436 FSNamesystem.setTimes(..) expects the path is a file.
- Closed