Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2436

FSNamesystem.setTimes(..) expects the path is a file.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 0.23.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      FSNamesystem.setTimes(..) does not work if the path is a directory.

      Arpit found this bug when testing webhdfs:

      settimes api is working when called on a file, but when called on a dir it returns a 404. I should be able to set time on both a file and a directory.

      1. HDFS-2436.patch
        4 kB
        Uma Maheswara Rao G
      2. HDFS-2436.patch
        5 kB
        Uma Maheswara Rao G
      3. HDFS-2436.patch
        5 kB
        Uma Maheswara Rao G

        Issue Links

          Activity

          Arpit Gupta created issue -
          Tsz Wo Nicholas Sze made changes -
          Field Original Value New Value
          Summary webhdfs settimes api returns a 404 when called on a dir FSNamesystem.setTimes(..) expects the path is a file.
          Description settimes api is working when called on a file, but when called on a dir it returns a 404. I should be able to set time on both a file and a directory. FSNamesystem.setTimes(..) does not work if the path is a directory.

          Arpit found this bug when testing webhdfs:
          {quote}
          settimes api is working when called on a file, but when called on a dir it returns a 404. I should be able to set time on both a file and a directory.
          {quote}
          Tsz Wo Nicholas Sze made changes -
          Link This issue is related to HDFS-2440 [ HDFS-2440 ]
          Uma Maheswara Rao G made changes -
          Assignee Uma Maheswara Rao G [ umamaheswararao ]
          Uma Maheswara Rao G made changes -
          Link This issue is duplicated by HDFS-952 [ HDFS-952 ]
          Uma Maheswara Rao G made changes -
          Attachment HDFS-2436.patch [ 12501288 ]
          Uma Maheswara Rao G made changes -
          Link This issue relates to HDFS-2509 [ HDFS-2509 ]
          Uma Maheswara Rao G made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Uma Maheswara Rao G made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Uma Maheswara Rao G made changes -
          Attachment HDFS-2436.patch [ 12501318 ]
          Uma Maheswara Rao G made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Uma Maheswara Rao G made changes -
          Attachment HDFS-2436.patch [ 12501353 ]
          Tsz Wo Nicholas Sze made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 0.23.0 [ 12315571 ]
          Fix Version/s 0.24.0 [ 12317653 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Konstantin Shvachko made changes -
          Link This issue relates to HDFS-2712 [ HDFS-2712 ]
          Allen Wittenauer made changes -
          Fix Version/s 2.0.0-alpha [ 12320353 ]
          Fix Version/s 0.24.0 [ 12317653 ]
          Allen Wittenauer made changes -
          Fix Version/s 2.0.0-alpha [ 12320353 ]

            People

            • Assignee:
              Uma Maheswara Rao G
              Reporter:
              Arpit Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development