hadoop-hdfs-dev mailing list archives

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

  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 {

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message