Hadoop Common
  1. Hadoop Common
  2. HADOOP-6900

FileSystem#listLocatedStatus should not throw generic RuntimeException to indicate error conditions

    Details

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

      Description

      HDFS-6870 introduced FileSystem#listLocatedStatus(), that returns an Iterator to iterate through LocatedFileStatus for files under a directory or recursively under a sub-directory. Iterator currently throws generic RuntimeException to indicate error conditions. API needs to be changed to throw appropriate exceptions to indicate error conditions.

      1. listFilesIO.patch
        20 kB
        Hairong Kuang
      2. listFilesIO1.patch
        25 kB
        Hairong Kuang

        Issue Links

          Activity

          Konstantin Shvachko made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hairong Kuang made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Hairong Kuang made changes -
          Attachment listFilesIO1.patch [ 12451636 ]
          Hairong Kuang made changes -
          Attachment listFilesIO.patch [ 12451397 ]
          Hairong Kuang made changes -
          Assignee Hairong Kuang [ hairong ]
          Suresh Srinivas made changes -
          Summary FileSystem#listLocatedStatus API needs changes to indicate complete set of error conditions FileSystem#listLocatedStatus should not throw generic RuntimeException to indicate error conditions
          Description HDFS-6870 introduced FileSystem#listLocatedStatus(), that returns an iterator to iterate through LocatedFileStatus for files under a directory or recursively under a sub-directory. Through the iterator application does not get all the error conditions. HDFS-6870 introduced FileSystem#listLocatedStatus(), that returns an Iterator to iterate through LocatedFileStatus for files under a directory or recursively under a sub-directory. Iterator currently throws generic RuntimeException to indicate error conditions. API needs to be changed to throw appropriate exceptions to indicate error conditions.
          Suresh Srinivas made changes -
          Field Original Value New Value
          Link This issue is related to HADOOP-6870 [ HADOOP-6870 ]
          Suresh Srinivas created issue -

            People

            • Assignee:
              Hairong Kuang
              Reporter:
              Suresh Srinivas
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development