Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-952

FSNamesystem.setTimes fails on directory

    XMLWordPrintableJSON

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

          Activity

            People

              sghao Guanghao Shen
              zshao Zheng Shao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: