Hadoop Common
  1. Hadoop Common
  2. HADOOP-6229

Atempt to make a directory under an existing file on LocalFileSystem should throw an Exception.

    Details

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

      Description

      This task is sub task of HDFS-303

      "1. When trying to make a directory under an existing file, HDFS throws an IOException while LocalFileSystem doesn't.
      An IOException seems good here. "

      Actually HDFS throws FileNotFoundException in this case (in FSDirectory.mkdirs() ). So I guess we should do the same.

      1. HADOOP-6229-2.patch
        4 kB
        Boris Shkolnik
      2. HADOOP-6229-2.patch
        4 kB
        Boris Shkolnik
      3. HADOOP-6229-1.patch
        3 kB
        Boris Shkolnik
      4. HADOOP-6229.patch
        0.8 kB
        Boris Shkolnik

        Issue Links

          Activity

          Boris Shkolnik created issue -
          Boris Shkolnik made changes -
          Field Original Value New Value
          Link This issue is part of HDFS-303 [ HDFS-303 ]
          Boris Shkolnik made changes -
          Assignee Boris Shkolnik [ boryas ]
          Boris Shkolnik made changes -
          Attachment HADOOP-6229.patch [ 12418453 ]
          Boris Shkolnik made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Boris Shkolnik made changes -
          Attachment HADOOP-6229-1.patch [ 12418544 ]
          Boris Shkolnik made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Boris Shkolnik made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Boris Shkolnik made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Boris Shkolnik made changes -
          Attachment HADOOP-6229-2.patch [ 12418562 ]
          Boris Shkolnik made changes -
          Attachment HADOOP-6229-2.patch [ 12418563 ]
          Boris Shkolnik made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Tom White made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Fix Version/s 0.21.0 [ 12313563 ]
          Resolution Fixed [ 1 ]
          Boris Shkolnik made changes -
          Release Note New behavior:
          if mkdirs(p) argument's parent is an existing file the method will throw FileAlreadyExistsException.
          if mkdirs(p) argument is null it will throw IllegalArgumentException
          Robert Chansler made changes -
          Release Note New behavior:
          if mkdirs(p) argument's parent is an existing file the method will throw FileAlreadyExistsException.
          if mkdirs(p) argument is null it will throw IllegalArgumentException
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Boris Shkolnik
              Reporter:
              Boris Shkolnik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development